Skip to main content

IsA

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.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§