pub trait AsAny: Any {
    fn as_any(&self) -> &dyn Any;
    fn as_mut_any(&mut self) -> &mut dyn Any;
    fn into_any(self: Box<Self>) -> Box<dyn Any>;
}
Expand description

Trait used for casting support into the Any trait object

Required Methods

Converts reference to Any

Converts mutable reference to Any

Consumes and produces Box<dyn Any>

Implementors

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