Skip to main content

ITResourceHandle_1Methods

Trait ITResourceHandle_1Methods 

Source
pub trait ITResourceHandle_1Methods<T0: ClassIdentity>: ClassIdentity {
    // Provided methods
    fn ctor(self)
       where Self: Sized { ... }
    fn ctor_2(self, path: Il2CppString, completed: Action_1<T0>)
       where Self: Sized { ... }
    fn get_asset(self) -> T0
       where Self: Sized { ... }
    fn load_async(self, path: Il2CppString, completed: Action_1<T0>)
       where Self: Sized { ... }
    fn instantiate(self, parent: GameObject, name: Il2CppString) -> T0
       where Self: Sized { ... }
    fn instantiate_2(self, parent: Transform, name: Il2CppString) -> T0
       where Self: Sized { ... }
}

Provided Methods§

Source

fn ctor(self)
where Self: Sized,

Source

fn ctor_2(self, path: Il2CppString, completed: Action_1<T0>)
where Self: Sized,

Source

fn get_asset(self) -> T0
where Self: Sized,

Source

fn load_async(self, path: Il2CppString, completed: Action_1<T0>)
where Self: Sized,

Source

fn instantiate(self, parent: GameObject, name: Il2CppString) -> T0
where Self: Sized,

Source

fn instantiate_2(self, parent: Transform, name: Il2CppString) -> T0
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§