Trait entity::AsAny[][src]

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

Trait used for casting support into the Any trait object

Required methods

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

Converts reference to Any

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

converts mutable reference to Any

Loading content...

Implementors

impl<T: 'static> AsAny for T[src]

Blanket implementation that enables any 'static reference to convert to the Any type

Loading content...