Skip to main content

IMonoModuleMethods

Trait IMonoModuleMethods 

Source
pub trait IMonoModuleMethods: IMonoModule {
    // Provided methods
    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 { ... }
    fn get_runtime_assembly(self) -> RuntimeAssembly { ... }
    fn ctor(self) { ... }
}

Provided Methods§

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

Source

fn get_runtime_assembly(self) -> RuntimeAssembly

GetRuntimeAssembly() overload

Source

fn ctor(self)

.ctor() 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: IMonoModule> IMonoModuleMethods for __T

Available on crate feature system-reflection-monomodule only.