Skip to main content

IStandardEnumUserDataDescriptorMethods

Trait IStandardEnumUserDataDescriptorMethods 

Source
pub trait IStandardEnumUserDataDescriptorMethods: IStandardEnumUserDataDescriptor {
Show 29 methods // Provided methods fn get_underlying_type(self) -> SystemType { ... } fn set_underlying_type(self, value: impl Into<SystemType>) { ... } fn get_is_unsigned(self) -> bool { ... } fn set_is_unsigned(self, value: impl Into<bool>) { ... } fn get_is_flags(self) -> bool { ... } fn set_is_flags(self, value: impl Into<bool>) { ... } fn ctor( self, enum_type: impl Into<SystemType>, friendly_name: impl Into<Il2CppString>, names: impl Into<Array<Il2CppString>>, values: impl Into<Array<Object>>, underlying_type: impl Into<SystemType>, ) { ... } fn fill_member_list( self, names: impl Into<Array<Il2CppString>>, values: impl Into<Array<Object>>, ) { ... } fn add_enum_method( self, name: impl Into<Il2CppString>, dyn_value: impl Into<DynValue>, ) { ... } fn get_value_signed(self, dv: impl Into<DynValue>) -> i64 { ... } fn get_value_unsigned(self, dv: impl Into<DynValue>) -> u64 { ... } fn create_value_signed(self, value: impl Into<i64>) -> DynValue { ... } fn create_value_unsigned(self, value: impl Into<u64>) -> DynValue { ... } fn create_signed_conversion_functions(self) { ... } fn create_unsigned_conversion_functions(self) { ... } fn perform_binary_operation_s( self, func_name: impl Into<Il2CppString>, ctx: impl Into<ScriptExecutionContext>, args: impl Into<CallbackArguments>, operation: impl Into<Func_3<i64, i64, DynValue>>, ) -> DynValue { ... } fn perform_binary_operation_u( self, func_name: impl Into<Il2CppString>, ctx: impl Into<ScriptExecutionContext>, args: impl Into<CallbackArguments>, operation: impl Into<Func_3<u64, u64, DynValue>>, ) -> DynValue { ... } fn perform_binary_operation_s_2( self, func_name: impl Into<Il2CppString>, ctx: impl Into<ScriptExecutionContext>, args: impl Into<CallbackArguments>, operation: impl Into<Func_3<i64, i64, i64>>, ) -> DynValue { ... } fn perform_binary_operation_u_2( self, func_name: impl Into<Il2CppString>, ctx: impl Into<ScriptExecutionContext>, args: impl Into<CallbackArguments>, operation: impl Into<Func_3<u64, u64, u64>>, ) -> DynValue { ... } fn perform_unary_operation_s( self, func_name: impl Into<Il2CppString>, ctx: impl Into<ScriptExecutionContext>, args: impl Into<CallbackArguments>, operation: impl Into<Func_2<i64, i64>>, ) -> DynValue { ... } fn perform_unary_operation_u( self, func_name: impl Into<Il2CppString>, ctx: impl Into<ScriptExecutionContext>, args: impl Into<CallbackArguments>, operation: impl Into<Func_2<u64, u64>>, ) -> DynValue { ... } fn callback_or( self, ctx: impl Into<ScriptExecutionContext>, args: impl Into<CallbackArguments>, ) -> DynValue { ... } fn callback_and( self, ctx: impl Into<ScriptExecutionContext>, args: impl Into<CallbackArguments>, ) -> DynValue { ... } fn callback_xor( self, ctx: impl Into<ScriptExecutionContext>, args: impl Into<CallbackArguments>, ) -> DynValue { ... } fn callback_bw_not( self, ctx: impl Into<ScriptExecutionContext>, args: impl Into<CallbackArguments>, ) -> DynValue { ... } fn callback_has_all( self, ctx: impl Into<ScriptExecutionContext>, args: impl Into<CallbackArguments>, ) -> DynValue { ... } fn callback_has_any( self, ctx: impl Into<ScriptExecutionContext>, args: impl Into<CallbackArguments>, ) -> DynValue { ... } fn is_type_compatible( self, type: impl Into<SystemType>, obj: impl Into<Object>, ) -> bool { ... } fn meta_index( self, script: impl Into<Script>, obj: impl Into<Object>, metaname: impl Into<Il2CppString>, ) -> DynValue { ... }
}

Provided Methods§

Source

fn get_underlying_type(self) -> SystemType

get_UnderlyingType() overload

Source

fn set_underlying_type(self, value: impl Into<SystemType>)

set_UnderlyingType(::unity::SystemType) overload

Source

fn get_is_unsigned(self) -> bool

get_IsUnsigned() overload

Source

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

set_IsUnsigned(bool) overload

Source

fn get_is_flags(self) -> bool

get_IsFlags() overload

Source

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

set_IsFlags(bool) overload

Source

fn ctor( self, enum_type: impl Into<SystemType>, friendly_name: impl Into<Il2CppString>, names: impl Into<Array<Il2CppString>>, values: impl Into<Array<Object>>, underlying_type: impl Into<SystemType>, )

.ctor(::unity::SystemType, ::unity::Il2CppString, ::unity::Array<::unity::Il2CppString>, ::unity::Array<crate::system::object::Object>, ::unity::SystemType) overload

Source

fn fill_member_list( self, names: impl Into<Array<Il2CppString>>, values: impl Into<Array<Object>>, )

FillMemberList(::unity::Array<::unity::Il2CppString>, ::unity::Array<crate::system::object::Object>) overload

Source

fn add_enum_method( self, name: impl Into<Il2CppString>, dyn_value: impl Into<DynValue>, )

AddEnumMethod(::unity::Il2CppString, crate::moon_sharp::interpreter::dynvalue::DynValue) overload

Source

fn get_value_signed(self, dv: impl Into<DynValue>) -> i64

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

Source

fn get_value_unsigned(self, dv: impl Into<DynValue>) -> u64

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

Source

fn create_value_signed(self, value: impl Into<i64>) -> DynValue

CreateValueSigned(i64) overload

Source

fn create_value_unsigned(self, value: impl Into<u64>) -> DynValue

CreateValueUnsigned(u64) overload

Source

fn create_signed_conversion_functions(self)

CreateSignedConversionFunctions() overload

Source

fn create_unsigned_conversion_functions(self)

CreateUnsignedConversionFunctions() overload

Source

fn perform_binary_operation_s( self, func_name: impl Into<Il2CppString>, ctx: impl Into<ScriptExecutionContext>, args: impl Into<CallbackArguments>, operation: impl Into<Func_3<i64, i64, DynValue>>, ) -> DynValue

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

Source

fn perform_binary_operation_u( self, func_name: impl Into<Il2CppString>, ctx: impl Into<ScriptExecutionContext>, args: impl Into<CallbackArguments>, operation: impl Into<Func_3<u64, u64, DynValue>>, ) -> DynValue

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

Source

fn perform_binary_operation_s_2( self, func_name: impl Into<Il2CppString>, ctx: impl Into<ScriptExecutionContext>, args: impl Into<CallbackArguments>, operation: impl Into<Func_3<i64, i64, i64>>, ) -> DynValue

PerformBinaryOperationS(::unity::Il2CppString, crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext, crate::moon_sharp::interpreter::callbackarguments::CallbackArguments, crate::system::func_3::Func_3<i64,i64,i64>) overload

Source

fn perform_binary_operation_u_2( self, func_name: impl Into<Il2CppString>, ctx: impl Into<ScriptExecutionContext>, args: impl Into<CallbackArguments>, operation: impl Into<Func_3<u64, u64, u64>>, ) -> DynValue

PerformBinaryOperationU(::unity::Il2CppString, crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext, crate::moon_sharp::interpreter::callbackarguments::CallbackArguments, crate::system::func_3::Func_3<u64,u64,u64>) overload

Source

fn perform_unary_operation_s( self, func_name: impl Into<Il2CppString>, ctx: impl Into<ScriptExecutionContext>, args: impl Into<CallbackArguments>, operation: impl Into<Func_2<i64, i64>>, ) -> DynValue

PerformUnaryOperationS(::unity::Il2CppString, crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext, crate::moon_sharp::interpreter::callbackarguments::CallbackArguments, crate::system::func_2::Func_2<i64,i64>) overload

Source

fn perform_unary_operation_u( self, func_name: impl Into<Il2CppString>, ctx: impl Into<ScriptExecutionContext>, args: impl Into<CallbackArguments>, operation: impl Into<Func_2<u64, u64>>, ) -> DynValue

PerformUnaryOperationU(::unity::Il2CppString, crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext, crate::moon_sharp::interpreter::callbackarguments::CallbackArguments, crate::system::func_2::Func_2<u64,u64>) overload

Source

fn callback_or( self, ctx: impl Into<ScriptExecutionContext>, args: impl Into<CallbackArguments>, ) -> DynValue

Callback_Or(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext, crate::moon_sharp::interpreter::callbackarguments::CallbackArguments) overload

Source

fn callback_and( self, ctx: impl Into<ScriptExecutionContext>, args: impl Into<CallbackArguments>, ) -> DynValue

Callback_And(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext, crate::moon_sharp::interpreter::callbackarguments::CallbackArguments) overload

Source

fn callback_xor( self, ctx: impl Into<ScriptExecutionContext>, args: impl Into<CallbackArguments>, ) -> DynValue

Callback_Xor(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext, crate::moon_sharp::interpreter::callbackarguments::CallbackArguments) overload

Source

fn callback_bw_not( self, ctx: impl Into<ScriptExecutionContext>, args: impl Into<CallbackArguments>, ) -> DynValue

Callback_BwNot(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext, crate::moon_sharp::interpreter::callbackarguments::CallbackArguments) overload

Source

fn callback_has_all( self, ctx: impl Into<ScriptExecutionContext>, args: impl Into<CallbackArguments>, ) -> DynValue

Callback_HasAll(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext, crate::moon_sharp::interpreter::callbackarguments::CallbackArguments) overload

Source

fn callback_has_any( self, ctx: impl Into<ScriptExecutionContext>, args: impl Into<CallbackArguments>, ) -> DynValue

Callback_HasAny(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext, crate::moon_sharp::interpreter::callbackarguments::CallbackArguments) overload

Source

fn is_type_compatible( self, type: impl Into<SystemType>, obj: impl Into<Object>, ) -> bool

IsTypeCompatible(::unity::SystemType, crate::system::object::Object) overload

Source

fn meta_index( self, script: impl Into<Script>, obj: impl Into<Object>, metaname: impl Into<Il2CppString>, ) -> DynValue

MetaIndex(crate::moon_sharp::interpreter::script::Script, crate::system::object::Object, ::unity::Il2CppString) 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: IStandardEnumUserDataDescriptor> IStandardEnumUserDataDescriptorMethods for __T

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