upcast

Function upcast 

Source
pub fn upcast<A, B: ?Sized>() -> Rc<impl Fn(Ptr<A>) -> Ptr<B>>
where A: Upcast<B> + ?Sized,