pub trait AsAny {
// Required methods
fn as_any(&self) -> &dyn Any;
fn type_name(&self) -> &'static str;
fn swap_dyn(&mut self, other: &mut dyn Any) -> bool;
}
Expand description
Allow downcast for trait object.
pub trait AsAny {
// Required methods
fn as_any(&self) -> &dyn Any;
fn type_name(&self) -> &'static str;
fn swap_dyn(&mut self, other: &mut dyn Any) -> bool;
}
Allow downcast for trait object.