UpcastObject

Trait UpcastObject 

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

Required Methods§

Source

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

Implementations on Foreign Types§

Source§

impl UpcastObject<dyn Any> for String

Implementors§

Source§

impl<T: ?Sized> UpcastObject<T> for T