Skip to main content

IObjectCallbackMemberDescriptorMethods

Trait IObjectCallbackMemberDescriptorMethods 

Source
pub trait IObjectCallbackMemberDescriptorMethods: IObjectCallbackMemberDescriptor {
    // Provided methods
    fn ctor(self, func_name: impl Into<Il2CppString>) { ... }
    fn ctor_2(
        self,
        func_name: impl Into<Il2CppString>,
        call_back: impl Into<Func_4<Object, ScriptExecutionContext, CallbackArguments, Object>>,
    ) { ... }
    fn ctor_3(
        self,
        func_name: impl Into<Il2CppString>,
        call_back: impl Into<Func_4<Object, ScriptExecutionContext, CallbackArguments, Object>>,
        parameters: impl Into<Array<ParameterDescriptor>>,
    ) { ... }
    fn execute(
        self,
        script: impl Into<Script>,
        obj: impl Into<Object>,
        context: impl Into<ScriptExecutionContext>,
        args: impl Into<CallbackArguments>,
    ) -> DynValue { ... }
}

Provided Methods§

Source

fn ctor(self, func_name: impl Into<Il2CppString>)

.ctor(::unity::Il2CppString) overload

Source

fn ctor_2( self, func_name: impl Into<Il2CppString>, call_back: impl Into<Func_4<Object, ScriptExecutionContext, CallbackArguments, Object>>, )

.ctor(::unity::Il2CppString, crate::system::func_4::Func_4<crate::system::object::Object,crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext,crate::moon_sharp::interpreter::callbackarguments::CallbackArguments,crate::system::object::Object>) overload

Source

fn ctor_3( self, func_name: impl Into<Il2CppString>, call_back: impl Into<Func_4<Object, ScriptExecutionContext, CallbackArguments, Object>>, parameters: impl Into<Array<ParameterDescriptor>>, )

.ctor(::unity::Il2CppString, crate::system::func_4::Func_4<crate::system::object::Object,crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext,crate::moon_sharp::interpreter::callbackarguments::CallbackArguments,crate::system::object::Object>, ::unity::Array<crate::moon_sharp::interpreter::interop::basic_descriptors::parameterdescriptor::ParameterDescriptor>) overload

Source

fn execute( self, script: impl Into<Script>, obj: impl Into<Object>, context: impl Into<ScriptExecutionContext>, args: impl Into<CallbackArguments>, ) -> DynValue

Execute(crate::moon_sharp::interpreter::script::Script, crate::system::object::Object, crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext, crate::moon_sharp::interpreter::callbackarguments::CallbackArguments) 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: IObjectCallbackMemberDescriptor> IObjectCallbackMemberDescriptorMethods for __T

Available on crate feature moon_sharp-interpreter-interop-objectcallbackmemberdescriptor only.