Skip to main content

IModuleMethods

Trait IModuleMethods 

Source
pub trait IModuleMethods: IModule {
    // Provided methods
    fn ctor(self) { ... }
    fn to_string(self) -> Il2CppString { ... }
    fn get_guid_internal(self) -> Il2CppString { ... }
    fn equals(self, o: impl Into<Object>) -> bool { ... }
    fn get_hash_code(self) -> i32 { ... }
    fn get_assembly(self) -> Assembly { ... }
    fn get_scope_name(self) -> Il2CppString { ... }
    fn is_resource(self) -> bool { ... }
    fn get_custom_attributes(
        self,
        attribute_type: impl Into<SystemType>,
        inherit: impl Into<bool>,
    ) -> Array<Object> { ... }
    fn is_defined(
        self,
        attribute_type: impl Into<SystemType>,
        inherit: impl Into<bool>,
    ) -> bool { ... }
}

Provided Methods§

Source

fn ctor(self)

.ctor() overload

Source

fn to_string(self) -> Il2CppString

ToString() overload

Source

fn get_guid_internal(self) -> Il2CppString

GetGuidInternal() overload

Source

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

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

Source

fn get_hash_code(self) -> i32

GetHashCode() overload

Source

fn get_assembly(self) -> Assembly

get_Assembly() overload

Source

fn get_scope_name(self) -> Il2CppString

get_ScopeName() overload

Source

fn is_resource(self) -> bool

IsResource() overload

Source

fn get_custom_attributes( self, attribute_type: impl Into<SystemType>, inherit: impl Into<bool>, ) -> Array<Object>

GetCustomAttributes(::unity::SystemType, bool) overload

Source

fn is_defined( self, attribute_type: impl Into<SystemType>, inherit: impl Into<bool>, ) -> bool

IsDefined(::unity::SystemType, bool) 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: IModule> IModuleMethods for __T

Available on crate feature system-reflection-module only.