Skip to main content

ICallbackFunctionMethods

Trait ICallbackFunctionMethods 

Source
pub trait ICallbackFunctionMethods: ICallbackFunction {
    // Provided methods
    fn get_name(self) -> Il2CppString { ... }
    fn set_name(self, value: impl Into<Il2CppString>) { ... }
    fn get_clr_callback(
        self,
    ) -> Func_3<ScriptExecutionContext, CallbackArguments, DynValue> { ... }
    fn set_clr_callback(
        self,
        value: impl Into<Func_3<ScriptExecutionContext, CallbackArguments, DynValue>>,
    ) { ... }
    fn ctor(
        self,
        call_back: impl Into<Func_3<ScriptExecutionContext, CallbackArguments, DynValue>>,
        name: impl Into<Il2CppString>,
    ) { ... }
    fn invoke(
        self,
        execution_context: impl Into<ScriptExecutionContext>,
        args: impl Into<IList_1_Interface<DynValue>>,
        is_method_call: impl Into<bool>,
    ) -> DynValue { ... }
    fn get_additional_data(self) -> Object { ... }
    fn set_additional_data(self, value: impl Into<Object>) { ... }
}

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_clr_callback( self, ) -> Func_3<ScriptExecutionContext, CallbackArguments, DynValue>

get_ClrCallback() overload

Source

fn set_clr_callback( self, value: impl Into<Func_3<ScriptExecutionContext, CallbackArguments, DynValue>>, )

set_ClrCallback(crate::system::func_3::Func_3<crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext,crate::moon_sharp::interpreter::callbackarguments::CallbackArguments,crate::moon_sharp::interpreter::dynvalue::DynValue>) overload

Source

fn ctor( self, call_back: impl Into<Func_3<ScriptExecutionContext, CallbackArguments, DynValue>>, name: impl Into<Il2CppString>, )

.ctor(crate::system::func_3::Func_3<crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext,crate::moon_sharp::interpreter::callbackarguments::CallbackArguments,crate::moon_sharp::interpreter::dynvalue::DynValue>, ::unity::Il2CppString) overload

Source

fn invoke( self, execution_context: impl Into<ScriptExecutionContext>, args: impl Into<IList_1_Interface<DynValue>>, is_method_call: impl Into<bool>, ) -> DynValue

Invoke(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext, crate::system::collections::generic::ilist_1_interface::IList_1_Interface<crate::moon_sharp::interpreter::dynvalue::DynValue>, bool) overload

Source

fn get_additional_data(self) -> Object

get_AdditionalData() overload

Source

fn set_additional_data(self, value: impl Into<Object>)

set_AdditionalData(crate::system::object::Object) 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: ICallbackFunction> ICallbackFunctionMethods for __T

Available on crate feature moon_sharp-interpreter-callbackfunction only.