pub trait AsAny {
// Required method
fn as_any(&self) -> &dyn Any;
// Provided method
fn type_name(&self) -> &'static str { ... }
}Expand description
The AsAny trait enables callers to downcast a Trait into a concrete implementation, assuming
the trait is + AsAny.