Skip to main content

IComponentSingleton_1_2Methods

Trait IComponentSingleton_1_2Methods 

Source
pub trait IComponentSingleton_1_2Methods<T0: ClassIdentity>: ClassIdentity {
    // Provided methods
    fn get_exists() -> bool { ... }
    fn get_instance() -> T0 { ... }
    fn find_instance() -> T0 { ... }
    fn get_game_object_name(self) -> Il2CppString
       where Self: Sized { ... }
    fn create_new_singleton() -> T0 { ... }
    fn awake(self)
       where Self: Sized { ... }
    fn destroy_singleton() { ... }
    fn ctor(self)
       where Self: Sized { ... }
}

Provided Methods§

Source

fn get_exists() -> bool

Source

fn get_instance() -> T0

Source

fn find_instance() -> T0

Source

fn get_game_object_name(self) -> Il2CppString
where Self: Sized,

Source

fn create_new_singleton() -> T0

Source

fn awake(self)
where Self: Sized,

Source

fn destroy_singleton()

Source

fn ctor(self)
where Self: Sized,

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§