Skip to main content

ISourceCodeMethods

Trait ISourceCodeMethods 

Source
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§

Source

fn get_name(self) -> Il2CppString

get_Name() overload

Source

fn set_name(self, value: impl Into<Il2CppString>)

set_Name(::unity::Il2CppString) overload

Source

fn get_code(self) -> Il2CppString

get_Code() overload

Source

fn set_code(self, value: impl Into<Il2CppString>)

set_Code(::unity::Il2CppString) overload

Source

fn get_lines(self) -> Array<Il2CppString>

get_Lines() overload

Source

fn set_lines(self, value: impl Into<Array<Il2CppString>>)

set_Lines(::unity::Array<::unity::Il2CppString>) overload

Source

fn get_owner_script(self) -> Script

get_OwnerScript() overload

Source

fn set_owner_script(self, value: impl Into<Script>)

set_OwnerScript(crate::moon_sharp::interpreter::script::Script) overload

Source

fn get_source_id(self) -> i32

get_SourceID() overload

Source

fn set_source_id(self, value: impl Into<i32>)

set_SourceID(i32) overload

Source

fn get_refs(self) -> List_1<SourceRef>

get_Refs() overload

Source

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

Source

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

Source

fn get_code_snippet(self, source_code_ref: impl Into<SourceRef>) -> Il2CppString

GetCodeSnippet(crate::moon_sharp::interpreter::debugging::sourceref::SourceRef) overload

Source

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§

Source§

impl<__T: ISourceCode> ISourceCodeMethods for __T

Available on crate feature moon_sharp-interpreter-debugging-sourcecode only.