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§
Sourcefn get_reference_id(self) -> i32
fn get_reference_id(self) -> i32
get_ReferenceID() overload
Sourcefn get_function(self) -> Closure
fn get_function(self) -> Closure
get_Function() overload
Sourcefn get_number(self) -> f64
fn get_number(self) -> f64
get_Number() overload
Sourcefn get_coroutine(self) -> Coroutine_2
fn get_coroutine(self) -> Coroutine_2
get_Coroutine() overload
Sourcefn get_boolean(self) -> bool
fn get_boolean(self) -> bool
get_Boolean() overload
Sourcefn get_string(self) -> Il2CppString
fn get_string(self) -> Il2CppString
get_String() overload
Sourcefn get_callback(self) -> CallbackFunction
fn get_callback(self) -> CallbackFunction
get_Callback() overload
Sourcefn get_tail_call_data(self) -> TailCallData
fn get_tail_call_data(self) -> TailCallData
get_TailCallData() overload
Sourcefn get_yield_request(self) -> YieldRequest
fn get_yield_request(self) -> YieldRequest
get_YieldRequest() overload
Sourcefn get_user_data(self) -> UserData
fn get_user_data(self) -> UserData
get_UserData() overload
Sourcefn get_read_only(self) -> bool
fn get_read_only(self) -> bool
get_ReadOnly() overload
Sourcefn as_read_only(self) -> DynValue
fn as_read_only(self) -> DynValue
AsReadOnly() overload
Sourcefn clone_as_writable(self) -> DynValue
fn clone_as_writable(self) -> DynValue
CloneAsWritable() overload
Sourcefn to_print_string(self) -> Il2CppString
fn to_print_string(self) -> Il2CppString
ToPrintString() overload
Sourcefn to_debug_print_string(self) -> Il2CppString
fn to_debug_print_string(self) -> Il2CppString
ToDebugPrintString() overload
Sourcefn to_string(self) -> Il2CppString
fn to_string(self) -> Il2CppString
ToString() overload
Sourcefn get_hash_code(self) -> i32
fn get_hash_code(self) -> i32
GetHashCode() overload
Sourcefn cast_to_string(self) -> Il2CppString
fn cast_to_string(self) -> Il2CppString
CastToString() overload
Sourcefn cast_to_bool(self) -> bool
fn cast_to_bool(self) -> bool
CastToBool() overload
Sourcefn get_as_private_resource(self) -> IScriptPrivateResource
fn get_as_private_resource(self) -> IScriptPrivateResource
GetAsPrivateResource() overload
Sourcefn assign(self, value: impl Into<DynValue>)
fn assign(self, value: impl Into<DynValue>)
Assign(crate::moon_sharp::interpreter::dynvalue::DynValue) overload
Sourcefn get_length(self) -> DynValue
fn get_length(self) -> DynValue
GetLength() overload
Sourcefn is_not_nil(self) -> bool
fn is_not_nil(self) -> bool
IsNotNil() overload
Sourcefn is_not_void(self) -> bool
fn is_not_void(self) -> bool
IsNotVoid() overload
Sourcefn is_nil_or_nan(self) -> bool
fn is_nil_or_nan(self) -> bool
IsNilOrNan() overload
Sourcefn assign_number(self, num: impl Into<f64>)
fn assign_number(self, num: impl Into<f64>)
AssignNumber(f64) overload
Sourcefn to_object_2(self, desired_type: impl Into<SystemType>) -> Object
fn to_object_2(self, desired_type: impl Into<SystemType>) -> Object
ToObject(::unity::SystemType) overload
Sourcefn 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_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
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
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§
impl<__T: IDynValue> IDynValueMethods for __T
moon_sharp-interpreter-dynvalue only.