[][src]Trait upcast::Upcast

pub trait Upcast<U: ?Sized> {
    fn up(&self) -> &U;
fn up_mut(&mut self) -> &mut U; }

Use this trait to perform your upcasts on dyn traits. Make sure to require it in the supertrait!

Required methods

fn up(&self) -> &U

fn up_mut(&mut self) -> &mut U

Loading content...

Implementors

impl<T: ?Sized, U: ?Sized> Upcast<U> for T where
    U: UpcastFrom<T>, 
[src]

Loading content...