Trait downcast_rs::Downcast [] [src]

pub trait Downcast: Any {
    fn as_any(&self) -> &Any;
    fn as_any_mut(&mut self) -> &mut Any;
}

Supports conversion to Any. Traits to be extended by impl_downcast! must extend Downcast.

Required Methods

fn as_any(&self) -> &Any

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

Implementors