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.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".