Trait fyrox_resource::loader::ResourceLoaderTypeTrait

source ·
pub trait ResourceLoaderTypeTrait: BaseResourceLoader {
    // Required methods
    fn into_any(self: Box<Self>) -> Box<dyn Any>;
    fn as_any(&self) -> &dyn Any;
    fn as_any_mut(&mut self) -> &mut dyn Any;
}
Expand description

A simple type-casting trait that has auto-impl.

Required Methods§

source

fn into_any(self: Box<Self>) -> Box<dyn Any>

Converts self into boxed Any.

source

fn as_any(&self) -> &dyn Any

Returns self as &dyn Any. It is useful for downcasting to a particular type.

source

fn as_any_mut(&mut self) -> &mut dyn Any

Returns self as &mut dyn Any. It is useful for downcasting to a particular type.

Implementors§