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§
Sourcefn get_hash_code(self) -> i32
fn get_hash_code(self) -> i32
GetHashCode() overload
Sourcefn memberwise_clone(self) -> Object
fn memberwise_clone(self) -> Object
MemberwiseClone() overload
Sourcefn to_string(self) -> Il2CppString
fn to_string(self) -> Il2CppString
ToString() overload
Sourcefn field_getter(
self,
type_name: impl Into<Il2CppString>,
field_name: impl Into<Il2CppString>,
) -> IlInstance
fn field_getter( self, type_name: impl Into<Il2CppString>, field_name: impl Into<Il2CppString>, ) -> IlInstance
FieldGetter(::unity::Il2CppString, ::unity::Il2CppString, *mut::unity::IlInstance) overload
Sourcefn field_setter(
self,
type_name: impl Into<Il2CppString>,
field_name: impl Into<Il2CppString>,
val: impl Into<Object>,
)
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§
impl<__T: IObject> IObjectMethods for __T
Available on crate feature
system-object only.