pub trait Upcastable {
    fn upcast_any_ref(&self) -> &dyn Any;
    fn upcast_any_mut(&mut self) -> &mut dyn Any;
    fn upcast_any_box(self: Box<Self>) -> Box<dyn Any>Notable traits for Box<R, Global>impl<R> Read for Box<R, Global> where
    R: Read + ?Sized
impl<W> Write for Box<W, Global> where
    W: Write + ?Sized
impl<I, A> Iterator for Box<I, A> where
    I: Iterator + ?Sized,
    A: Allocator
type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
    F: Future + Unpin + ?Sized,
    A: Allocator + 'static, 
type Output = <F as Future>::Output;
; }
Expand description

Trait needed to get downcasting of Engines to work.

Required Methods

upcast ref

upcast mut ref

upcast boxed dyn

Implementors