pub trait ISourceCodeMethods: ISourceCode {
Show 15 methods
// Provided methods
fn get_name(self) -> Il2CppString { ... }
fn set_name(self, value: impl Into<Il2CppString>) { ... }
fn get_code(self) -> Il2CppString { ... }
fn set_code(self, value: impl Into<Il2CppString>) { ... }
fn get_lines(self) -> Array<Il2CppString> { ... }
fn set_lines(self, value: impl Into<Array<Il2CppString>>) { ... }
fn get_owner_script(self) -> Script { ... }
fn set_owner_script(self, value: impl Into<Script>) { ... }
fn get_source_id(self) -> i32 { ... }
fn set_source_id(self, value: impl Into<i32>) { ... }
fn get_refs(self) -> List_1<SourceRef> { ... }
fn set_refs(self, value: impl Into<List_1<SourceRef>>) { ... }
fn ctor(
self,
name: impl Into<Il2CppString>,
code: impl Into<Il2CppString>,
source_id: impl Into<i32>,
owner_script: impl Into<Script>,
) { ... }
fn get_code_snippet(
self,
source_code_ref: impl Into<SourceRef>,
) -> Il2CppString { ... }
fn adjust_str_index(
self,
str: impl Into<Il2CppString>,
loc: impl Into<i32>,
) -> i32 { ... }
}Provided Methods§
Sourcefn get_name(self) -> Il2CppString
fn get_name(self) -> Il2CppString
get_Name() overload
Sourcefn set_name(self, value: impl Into<Il2CppString>)
fn set_name(self, value: impl Into<Il2CppString>)
set_Name(::unity::Il2CppString) overload
Sourcefn get_code(self) -> Il2CppString
fn get_code(self) -> Il2CppString
get_Code() overload
Sourcefn set_code(self, value: impl Into<Il2CppString>)
fn set_code(self, value: impl Into<Il2CppString>)
set_Code(::unity::Il2CppString) overload
Sourcefn get_lines(self) -> Array<Il2CppString>
fn get_lines(self) -> Array<Il2CppString>
get_Lines() overload
Sourcefn set_lines(self, value: impl Into<Array<Il2CppString>>)
fn set_lines(self, value: impl Into<Array<Il2CppString>>)
set_Lines(::unity::Array<::unity::Il2CppString>) overload
Sourcefn get_owner_script(self) -> Script
fn get_owner_script(self) -> Script
get_OwnerScript() overload
Sourcefn set_owner_script(self, value: impl Into<Script>)
fn set_owner_script(self, value: impl Into<Script>)
set_OwnerScript(crate::moon_sharp::interpreter::script::Script) overload
Sourcefn get_source_id(self) -> i32
fn get_source_id(self) -> i32
get_SourceID() overload
Sourcefn set_source_id(self, value: impl Into<i32>)
fn set_source_id(self, value: impl Into<i32>)
set_SourceID(i32) overload
Sourcefn set_refs(self, value: impl Into<List_1<SourceRef>>)
fn set_refs(self, value: impl Into<List_1<SourceRef>>)
set_Refs(crate::system::collections::generic::list_1::List_1<crate::moon_sharp::interpreter::debugging::sourceref::SourceRef>) overload
Sourcefn ctor(
self,
name: impl Into<Il2CppString>,
code: impl Into<Il2CppString>,
source_id: impl Into<i32>,
owner_script: impl Into<Script>,
)
fn ctor( self, name: impl Into<Il2CppString>, code: impl Into<Il2CppString>, source_id: impl Into<i32>, owner_script: impl Into<Script>, )
.ctor(::unity::Il2CppString, ::unity::Il2CppString, i32, crate::moon_sharp::interpreter::script::Script) overload
Sourcefn get_code_snippet(self, source_code_ref: impl Into<SourceRef>) -> Il2CppString
fn get_code_snippet(self, source_code_ref: impl Into<SourceRef>) -> Il2CppString
GetCodeSnippet(crate::moon_sharp::interpreter::debugging::sourceref::SourceRef) overload
Sourcefn adjust_str_index(
self,
str: impl Into<Il2CppString>,
loc: impl Into<i32>,
) -> i32
fn adjust_str_index( self, str: impl Into<Il2CppString>, loc: impl Into<i32>, ) -> i32
AdjustStrIndex(::unity::Il2CppString, i32) overload
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
impl<__T: ISourceCode> ISourceCodeMethods for __T
moon_sharp-interpreter-debugging-sourcecode only.