UpcastBox

Trait UpcastBox 

Source
pub trait UpcastBox<T: ?Sized> {
    // Required method
    fn upcast(&self) -> Box<T>;
}

Required Methods§

Source

fn upcast(&self) -> Box<T>

Implementors§

Source§

impl<T: ?Sized, U> UpcastBox<T> for Rc<U>
where U: UpcastBox<T>,