pub trait AsAny {
// Required method
fn as_any(&self) -> &(dyn Any + 'static);
}Expand description
A trait that allows an object to be downcast to a reference of type Any.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".