Trait wasmer_compiler::Upcastable
source · [−]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<W, Global>impl<W> Write for Box<W, Global>where
W: Write + ?Sized,impl<R> Read for Box<R, Global>where
R: Read + ?Sized,impl<F, A> Future for Box<F, A>where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A>where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;
;
}
Expand description
Trait needed to get downcasting of Engine
s to work.
Required Methods
sourcefn upcast_any_ref(&self) -> &dyn Any
fn upcast_any_ref(&self) -> &dyn Any
upcast ref
sourcefn upcast_any_mut(&mut self) -> &mut dyn Any
fn upcast_any_mut(&mut self) -> &mut dyn Any
upcast mut ref
sourcefn upcast_any_box(self: Box<Self>) -> Box<dyn Any>ⓘNotable traits for Box<W, Global>impl<W> Write for Box<W, Global>where
W: Write + ?Sized,impl<R> Read for Box<R, Global>where
R: Read + ?Sized,impl<F, A> Future for Box<F, A>where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A>where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;
fn upcast_any_box(self: Box<Self>) -> Box<dyn Any>ⓘNotable traits for Box<W, Global>impl<W> Write for Box<W, Global>where
W: Write + ?Sized,impl<R> Read for Box<R, Global>where
R: Read + ?Sized,impl<F, A> Future for Box<F, A>where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A>where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;
W: Write + ?Sized,impl<R> Read for Box<R, Global>where
R: Read + ?Sized,impl<F, A> Future for Box<F, A>where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A>where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;
upcast boxed dyn