Skip to main content

IDynValueMethods

Trait IDynValueMethods 

Source
pub trait IDynValueMethods: IDynValue {
Show 40 methods // Provided methods fn get_reference_id(self) -> i32 { ... } fn get_type(self) -> DataType { ... } fn get_function(self) -> Closure { ... } fn get_number(self) -> f64 { ... } fn get_tuple(self) -> Array<DynValue> { ... } fn get_coroutine(self) -> Coroutine_2 { ... } fn get_table(self) -> Table { ... } fn get_boolean(self) -> bool { ... } fn get_string(self) -> Il2CppString { ... } fn get_callback(self) -> CallbackFunction { ... } fn get_tail_call_data(self) -> TailCallData { ... } fn get_yield_request(self) -> YieldRequest { ... } fn get_user_data(self) -> UserData { ... } fn get_read_only(self) -> bool { ... } fn as_read_only(self) -> DynValue { ... } fn clone(self) -> DynValue { ... } fn clone_2(self, read_only: impl Into<bool>) -> DynValue { ... } fn clone_as_writable(self) -> DynValue { ... } fn to_print_string(self) -> Il2CppString { ... } fn to_debug_print_string(self) -> Il2CppString { ... } fn to_string(self) -> Il2CppString { ... } fn get_hash_code(self) -> i32 { ... } fn equals(self, obj: impl Into<Object>) -> bool { ... } fn cast_to_string(self) -> Il2CppString { ... } fn cast_to_bool(self) -> bool { ... } fn get_as_private_resource(self) -> IScriptPrivateResource { ... } fn to_scalar(self) -> DynValue { ... } fn assign(self, value: impl Into<DynValue>) { ... } fn get_length(self) -> DynValue { ... } fn is_nil(self) -> bool { ... } fn is_not_nil(self) -> bool { ... } fn is_void(self) -> bool { ... } fn is_not_void(self) -> bool { ... } fn is_nil_or_nan(self) -> bool { ... } fn assign_number(self, num: impl Into<f64>) { ... } fn to_object(self) -> Object { ... } fn to_object_2(self, desired_type: impl Into<SystemType>) -> Object { ... } fn check_type( self, func_name: impl Into<Il2CppString>, desired_type: impl Into<DataType>, arg_num: impl Into<i32>, flags: impl Into<TypeValidationFlags>, ) -> DynValue { ... } fn check_user_data_type<M0: IlType + Copy + ClassIdentity>( self, func_name: impl Into<Il2CppString>, arg_num: impl Into<i32>, flags: impl Into<TypeValidationFlags>, ) -> M0 { ... } fn ctor(self) { ... }
}

Provided Methods§

Source

fn get_reference_id(self) -> i32

get_ReferenceID() overload

Source

fn get_type(self) -> DataType

get_Type() overload

Source

fn get_function(self) -> Closure

get_Function() overload

Source

fn get_number(self) -> f64

get_Number() overload

Source

fn get_tuple(self) -> Array<DynValue>

get_Tuple() overload

Source

fn get_coroutine(self) -> Coroutine_2

get_Coroutine() overload

Source

fn get_table(self) -> Table

get_Table() overload

Source

fn get_boolean(self) -> bool

get_Boolean() overload

Source

fn get_string(self) -> Il2CppString

get_String() overload

Source

fn get_callback(self) -> CallbackFunction

get_Callback() overload

Source

fn get_tail_call_data(self) -> TailCallData

get_TailCallData() overload

Source

fn get_yield_request(self) -> YieldRequest

get_YieldRequest() overload

Source

fn get_user_data(self) -> UserData

get_UserData() overload

Source

fn get_read_only(self) -> bool

get_ReadOnly() overload

Source

fn as_read_only(self) -> DynValue

AsReadOnly() overload

Source

fn clone(self) -> DynValue

Clone() overload

Source

fn clone_2(self, read_only: impl Into<bool>) -> DynValue

Clone(bool) overload

Source

fn clone_as_writable(self) -> DynValue

CloneAsWritable() overload

Source

fn to_print_string(self) -> Il2CppString

ToPrintString() overload

Source

fn to_debug_print_string(self) -> Il2CppString

ToDebugPrintString() overload

Source

fn to_string(self) -> Il2CppString

ToString() overload

Source

fn get_hash_code(self) -> i32

GetHashCode() overload

Source

fn equals(self, obj: impl Into<Object>) -> bool

Equals(crate::system::object::Object) overload

Source

fn cast_to_string(self) -> Il2CppString

CastToString() overload

Source

fn cast_to_bool(self) -> bool

CastToBool() overload

Source

fn get_as_private_resource(self) -> IScriptPrivateResource

GetAsPrivateResource() overload

Source

fn to_scalar(self) -> DynValue

ToScalar() overload

Source

fn assign(self, value: impl Into<DynValue>)

Assign(crate::moon_sharp::interpreter::dynvalue::DynValue) overload

Source

fn get_length(self) -> DynValue

GetLength() overload

Source

fn is_nil(self) -> bool

IsNil() overload

Source

fn is_not_nil(self) -> bool

IsNotNil() overload

Source

fn is_void(self) -> bool

IsVoid() overload

Source

fn is_not_void(self) -> bool

IsNotVoid() overload

Source

fn is_nil_or_nan(self) -> bool

IsNilOrNan() overload

Source

fn assign_number(self, num: impl Into<f64>)

AssignNumber(f64) overload

Source

fn to_object(self) -> Object

ToObject() overload

Source

fn to_object_2(self, desired_type: impl Into<SystemType>) -> Object

ToObject(::unity::SystemType) overload

Source

fn check_type( self, func_name: impl Into<Il2CppString>, desired_type: impl Into<DataType>, arg_num: impl Into<i32>, flags: impl Into<TypeValidationFlags>, ) -> DynValue

CheckType(::unity::Il2CppString, crate::moon_sharp::interpreter::datatype::DataType, i32, crate::moon_sharp::interpreter::typevalidationflags::TypeValidationFlags) overload

Source

fn check_user_data_type<M0: IlType + Copy + ClassIdentity>( self, func_name: impl Into<Il2CppString>, arg_num: impl Into<i32>, flags: impl Into<TypeValidationFlags>, ) -> M0

Source

fn ctor(self)

.ctor() 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: IDynValue> IDynValueMethods for __T

Available on crate feature moon_sharp-interpreter-dynvalue only.