pub trait Downcast<T: ?Sized>: Sized {
type Wrapped;
// Required method
fn downcast(self) -> Result<Self::Wrapped, Self>;
}Expand description
Any wrapper around a class that can be downcast into a child class.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".