Trait IsA

Source
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§

Source

fn upcast(&self) -> T

Upcast this value to it’s parent type.

Implementors§