pub trait AsAny: Any {
// Required methods
fn as_any(&self) -> &dyn Any;
fn as_any_mut(&mut self) -> &mut dyn Any;
fn type_name(&self) -> &'static str;
}
Expand description
This trait is an extension trait to Any
, and adds methods to retrieve a &dyn Any