[][src]Trait entity::AsAny

pub trait AsAny: Any {
    pub fn as_any(&self) -> &dyn Any;
pub fn as_mut_any(&mut self) -> &mut dyn Any; }

Trait used for casting support into the Any trait object

Required methods

pub fn as_any(&self) -> &dyn Any[src]

Converts reference to Any

pub fn as_mut_any(&mut self) -> &mut dyn Any[src]

converts mutable reference to Any

Loading content...

Implementors

impl<T: Ent> AsAny for T[src]

Blanket implementation for all ents that enables them to be converted to any, which is useful when converting &dyn Ent into a concrete type

Loading content...