pub trait Upcast<U: ?Sized> {
    // Required method
    fn upcast(&self) -> &U;
}

Required Methods§

source

fn upcast(&self) -> &U

Implementors§

source§

impl<T: ?Sized, U> Upcast<U> for T
where U: UpcastFrom<T> + ?Sized,