Trait AsAny

Source
pub trait AsAny: 'static {
    // Required methods
    fn as_any(&self) -> &dyn Any;
    fn as_any_mut(&mut self) -> &mut dyn Any;
}
Expand description

Type information (TypeId) may be retrieved at runtime for this type.

Required Methods§

Source

fn as_any(&self) -> &dyn Any

Returns a reference to the type information for this type.

Source

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

Returns a mutable reference to the type information for this type.

Implementors§