pub trait IsA<T> {
// Required method
fn upcast(&self) -> T;
}Expand description
Indicates that this type is also a parent type and can be upcast to it.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".