pub trait ISingletonProcInst_1Methods<T0: ClassIdentity>: ClassIdentity {
Show 20 methods
// Provided methods
fn get_instance() -> T0 { ... }
fn on_singleton_create(self)
where Self: Sized { ... }
fn on_singleton_dispose(self)
where Self: Sized { ... }
fn get_is_resume(self) -> bool
where Self: Sized { ... }
fn set_is_resume(self, value: bool)
where Self: Sized { ... }
fn get_version(self) -> i32
where Self: Sized { ... }
fn resume_start(self)
where Self: Sized { ... }
fn resume_end(self)
where Self: Sized { ... }
fn serialize(stream: Stream_2) { ... }
fn deserialize(stream: Stream_2) { ... }
fn get_global_asset_path(self) -> Il2CppString
where Self: Sized { ... }
fn is_loading_global_asset(self) -> bool
where Self: Sized { ... }
fn release_global_asset(self)
where Self: Sized { ... }
fn instantiate_global_asset(self, parent: GameObject) -> GameObject
where Self: Sized { ... }
fn instantiate_global_asset_2(self, parent: Transform) -> GameObject
where Self: Sized { ... }
fn on_serialize(self, stream: Stream_2)
where Self: Sized { ... }
fn on_deserialize(self, stream: Stream_2, version: i32)
where Self: Sized { ... }
fn op_implicit(exists: SingletonProcInst_1<T0>) -> bool { ... }
fn ctor(self)
where Self: Sized { ... }
fn cctor() { ... }
}Provided Methods§
fn get_instance() -> T0
fn on_singleton_create(self)where
Self: Sized,
fn on_singleton_dispose(self)where
Self: Sized,
fn get_is_resume(self) -> boolwhere
Self: Sized,
fn set_is_resume(self, value: bool)where
Self: Sized,
fn get_version(self) -> i32where
Self: Sized,
fn resume_start(self)where
Self: Sized,
fn resume_end(self)where
Self: Sized,
fn serialize(stream: Stream_2)
fn deserialize(stream: Stream_2)
fn get_global_asset_path(self) -> Il2CppStringwhere
Self: Sized,
fn is_loading_global_asset(self) -> boolwhere
Self: Sized,
fn release_global_asset(self)where
Self: Sized,
fn instantiate_global_asset(self, parent: GameObject) -> GameObjectwhere
Self: Sized,
fn instantiate_global_asset_2(self, parent: Transform) -> GameObjectwhere
Self: Sized,
fn on_serialize(self, stream: Stream_2)where
Self: Sized,
fn on_deserialize(self, stream: Stream_2, version: i32)where
Self: Sized,
fn op_implicit(exists: SingletonProcInst_1<T0>) -> bool
fn ctor(self)where
Self: Sized,
fn cctor()
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.