AsAny

Trait AsAny 

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

Trait that is used to get the Any trait for a specific type.

Required Methods§

Source

fn as_any(&self) -> &dyn Any

Get a reference to the current object as Any.

Source

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

Get a mutable reference to the current object as Any.

Implementors§

Source§

impl<X: 'static> AsAny for X