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.
Upcast this value to it’s parent type.