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§
fn get_exists() -> bool
fn get_instance() -> T0
fn find_instance() -> T0
fn get_game_object_name(self) -> Il2CppStringwhere
Self: Sized,
fn create_new_singleton() -> T0
fn awake(self)where
Self: Sized,
fn destroy_singleton()
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.