Skip to main content

ICallbackArgumentsMethods

Trait ICallbackArgumentsMethods 

Source
pub trait ICallbackArgumentsMethods: ICallbackArguments {
Show 13 methods // Provided methods fn ctor( self, args: impl Into<IList_1_Interface<DynValue>>, is_method_call: impl Into<bool>, ) { ... } fn get_count(self) -> i32 { ... } fn get_is_method_call(self) -> bool { ... } fn set_is_method_call(self, value: impl Into<bool>) { ... } fn get_item(self, index: impl Into<i32>) -> DynValue { ... } fn raw_get( self, index: impl Into<i32>, translate_voids: impl Into<bool>, ) -> DynValue { ... } fn get_array(self, skip: impl Into<i32>) -> Array<DynValue> { ... } fn as_type( self, arg_num: impl Into<i32>, func_name: impl Into<Il2CppString>, type: impl Into<DataType>, allow_nil: impl Into<bool>, ) -> DynValue { ... } fn as_user_data<M0: IlType + Copy + ClassIdentity>( self, arg_num: impl Into<i32>, func_name: impl Into<Il2CppString>, allow_nil: impl Into<bool>, ) -> M0 { ... } fn as_int( self, arg_num: impl Into<i32>, func_name: impl Into<Il2CppString>, ) -> i32 { ... } fn as_long( self, arg_num: impl Into<i32>, func_name: impl Into<Il2CppString>, ) -> i64 { ... } fn as_string_using_meta( self, execution_context: impl Into<ScriptExecutionContext>, arg_num: impl Into<i32>, func_name: impl Into<Il2CppString>, ) -> Il2CppString { ... } fn skip_method_call(self) -> CallbackArguments { ... }
}

Provided Methods§

Source

fn ctor( self, args: impl Into<IList_1_Interface<DynValue>>, is_method_call: impl Into<bool>, )

.ctor(crate::system::collections::generic::ilist_1_interface::IList_1_Interface<crate::moon_sharp::interpreter::dynvalue::DynValue>, bool) overload

Source

fn get_count(self) -> i32

get_Count() overload

Source

fn get_is_method_call(self) -> bool

get_IsMethodCall() overload

Source

fn set_is_method_call(self, value: impl Into<bool>)

set_IsMethodCall(bool) overload

Source

fn get_item(self, index: impl Into<i32>) -> DynValue

get_Item(i32) overload

Source

fn raw_get( self, index: impl Into<i32>, translate_voids: impl Into<bool>, ) -> DynValue

RawGet(i32, bool) overload

Source

fn get_array(self, skip: impl Into<i32>) -> Array<DynValue>

GetArray(i32) overload

Source

fn as_type( self, arg_num: impl Into<i32>, func_name: impl Into<Il2CppString>, type: impl Into<DataType>, allow_nil: impl Into<bool>, ) -> DynValue

AsType(i32, ::unity::Il2CppString, crate::moon_sharp::interpreter::datatype::DataType, bool) overload

Source

fn as_user_data<M0: IlType + Copy + ClassIdentity>( self, arg_num: impl Into<i32>, func_name: impl Into<Il2CppString>, allow_nil: impl Into<bool>, ) -> M0

Source

fn as_int( self, arg_num: impl Into<i32>, func_name: impl Into<Il2CppString>, ) -> i32

AsInt(i32, ::unity::Il2CppString) overload

Source

fn as_long( self, arg_num: impl Into<i32>, func_name: impl Into<Il2CppString>, ) -> i64

AsLong(i32, ::unity::Il2CppString) overload

Source

fn as_string_using_meta( self, execution_context: impl Into<ScriptExecutionContext>, arg_num: impl Into<i32>, func_name: impl Into<Il2CppString>, ) -> Il2CppString

AsStringUsingMeta(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext, i32, ::unity::Il2CppString) overload

Source

fn skip_method_call(self) -> CallbackArguments

SkipMethodCall() 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: ICallbackArguments> ICallbackArgumentsMethods for __T

Available on crate feature moon_sharp-interpreter-callbackarguments only.