[][src]Trait upcast::UpcastFrom

pub trait UpcastFrom<T: ?Sized> {
    fn up_from(value: &T) -> &Self;
fn up_from_mut(value: &mut T) -> &mut Self; }

Implement this trait for your dyn Trait types for all T: Trait

Required methods

fn up_from(value: &T) -> &Self

fn up_from_mut(value: &mut T) -> &mut Self

Loading content...

Implementors

Loading content...