Skip to main content

IClosureMethods

Trait IClosureMethods 

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

Source

fn get_entry_point_byte_code_location(self) -> i32

get_EntryPointByteCodeLocation() overload

Source

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

set_EntryPointByteCodeLocation(i32) 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_closure_context(self) -> ClosureContext

get_ClosureContext() overload

Source

fn set_closure_context(self, value: impl Into<ClosureContext>)

set_ClosureContext(crate::moon_sharp::interpreter::execution::closurecontext::ClosureContext) overload

Source

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

Source

fn call(self) -> DynValue

Call() overload

Source

fn call_2(self, args: impl Into<Array<Object>>) -> DynValue

Call(::unity::Array<crate::system::object::Object>) overload

Source

fn call_3(self, args: impl Into<Array<DynValue>>) -> DynValue

Call(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>) overload

Source

fn get_delegate(self) -> ScriptFunctionDelegate

GetDelegate() overload

Source

fn get_upvalues_count(self) -> i32

GetUpvaluesCount() overload

Source

fn get_upvalue_name(self, idx: impl Into<i32>) -> Il2CppString

GetUpvalueName(i32) overload

Source

fn get_upvalue(self, idx: impl Into<i32>) -> DynValue

GetUpvalue(i32) overload

Source

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§

Source§

impl<__T: IClosure> IClosureMethods for __T

Available on crate feature moon_sharp-interpreter-closure only.