pub trait IClosureMethods: IClosure {
Show 15 methods
// Provided methods
fn get_entry_point_byte_code_location(self) -> i32 { ... }
fn set_entry_point_byte_code_location(self, value: impl Into<i32>) { ... }
fn get_owner_script(self) -> Script { ... }
fn set_owner_script(self, value: impl Into<Script>) { ... }
fn get_closure_context(self) -> ClosureContext { ... }
fn set_closure_context(self, value: impl Into<ClosureContext>) { ... }
fn ctor(
self,
script: impl Into<Script>,
idx: impl Into<i32>,
symbols: impl Into<Array<SymbolRef>>,
resolved_locals: impl Into<IEnumerable_1<DynValue>>,
) { ... }
fn call(self) -> DynValue { ... }
fn call_2(self, args: impl Into<Array<Object>>) -> DynValue { ... }
fn call_3(self, args: impl Into<Array<DynValue>>) -> DynValue { ... }
fn get_delegate(self) -> ScriptFunctionDelegate { ... }
fn get_upvalues_count(self) -> i32 { ... }
fn get_upvalue_name(self, idx: impl Into<i32>) -> Il2CppString { ... }
fn get_upvalue(self, idx: impl Into<i32>) -> DynValue { ... }
fn get_upvalues_type(self) -> Closure_UpvaluesType { ... }
}Provided Methods§
Sourcefn get_entry_point_byte_code_location(self) -> i32
fn get_entry_point_byte_code_location(self) -> i32
get_EntryPointByteCodeLocation() overload
Sourcefn set_entry_point_byte_code_location(self, value: impl Into<i32>)
fn set_entry_point_byte_code_location(self, value: impl Into<i32>)
set_EntryPointByteCodeLocation(i32) 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_closure_context(self) -> ClosureContext
fn get_closure_context(self) -> ClosureContext
get_ClosureContext() overload
Sourcefn set_closure_context(self, value: impl Into<ClosureContext>)
fn set_closure_context(self, value: impl Into<ClosureContext>)
set_ClosureContext(crate::moon_sharp::interpreter::execution::closurecontext::ClosureContext) overload
Sourcefn ctor(
self,
script: impl Into<Script>,
idx: impl Into<i32>,
symbols: impl Into<Array<SymbolRef>>,
resolved_locals: impl Into<IEnumerable_1<DynValue>>,
)
fn ctor( self, script: impl Into<Script>, idx: impl Into<i32>, symbols: impl Into<Array<SymbolRef>>, resolved_locals: impl Into<IEnumerable_1<DynValue>>, )
.ctor(crate::moon_sharp::interpreter::script::Script, i32, ::unity::Array<crate::moon_sharp::interpreter::symbolref::SymbolRef>, crate::system::collections::generic::ienumerable_1::IEnumerable_1<crate::moon_sharp::interpreter::dynvalue::DynValue>) overload
Sourcefn call_2(self, args: impl Into<Array<Object>>) -> DynValue
fn call_2(self, args: impl Into<Array<Object>>) -> DynValue
Call(::unity::Array<crate::system::object::Object>) overload
Sourcefn call_3(self, args: impl Into<Array<DynValue>>) -> DynValue
fn call_3(self, args: impl Into<Array<DynValue>>) -> DynValue
Call(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>) overload
Sourcefn get_delegate(self) -> ScriptFunctionDelegate
fn get_delegate(self) -> ScriptFunctionDelegate
GetDelegate() overload
Sourcefn get_upvalues_count(self) -> i32
fn get_upvalues_count(self) -> i32
GetUpvaluesCount() overload
Sourcefn get_upvalue_name(self, idx: impl Into<i32>) -> Il2CppString
fn get_upvalue_name(self, idx: impl Into<i32>) -> Il2CppString
GetUpvalueName(i32) overload
Sourcefn get_upvalue(self, idx: impl Into<i32>) -> DynValue
fn get_upvalue(self, idx: impl Into<i32>) -> DynValue
GetUpvalue(i32) overload
Sourcefn get_upvalues_type(self) -> Closure_UpvaluesType
fn get_upvalues_type(self) -> Closure_UpvaluesType
GetUpvaluesType() 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: IClosure> IClosureMethods for __T
moon_sharp-interpreter-closure only.