Skip to main content

IObjectMethods

Trait IObjectMethods 

Source
pub trait IObjectMethods: IObject {
    // Provided methods
    fn equals(self, obj: impl Into<Object>) -> bool { ... }
    fn ctor(self) { ... }
    fn finalize(self) { ... }
    fn get_hash_code(self) -> i32 { ... }
    fn get_type(self) -> SystemType { ... }
    fn memberwise_clone(self) -> Object { ... }
    fn to_string(self) -> Il2CppString { ... }
    fn field_getter(
        self,
        type_name: impl Into<Il2CppString>,
        field_name: impl Into<Il2CppString>,
    ) -> IlInstance { ... }
    fn field_setter(
        self,
        type_name: impl Into<Il2CppString>,
        field_name: impl Into<Il2CppString>,
        val: impl Into<Object>,
    ) { ... }
}

Provided Methods§

Source

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

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

Source

fn ctor(self)

.ctor() overload

Source

fn finalize(self)

Finalize() overload

Source

fn get_hash_code(self) -> i32

GetHashCode() overload

Source

fn get_type(self) -> SystemType

GetType() overload

Source

fn memberwise_clone(self) -> Object

MemberwiseClone() overload

Source

fn to_string(self) -> Il2CppString

ToString() overload

Source

fn field_getter( self, type_name: impl Into<Il2CppString>, field_name: impl Into<Il2CppString>, ) -> IlInstance

FieldGetter(::unity::Il2CppString, ::unity::Il2CppString, *mut::unity::IlInstance) overload

Source

fn field_setter( self, type_name: impl Into<Il2CppString>, field_name: impl Into<Il2CppString>, val: impl Into<Object>, )

FieldSetter(::unity::Il2CppString, ::unity::Il2CppString, 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: IObject> IObjectMethods for __T

Available on crate feature system-object only.