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.
pub trait IsA<T> {
// Required method
fn upcast(&self) -> T;
}
Indicates that this type is also a parent type and can be upcast to it.