pub trait Upcast<T> {
    fn upcast(self) -> T;
}
Expand description

Losslessly upcasts one type into another

Required Methods

Implementors

Implement Upcast automatically for all types that implement UpcastFrom