Trait wasmer_compiler::traits::Upcastable
source · pub trait Upcastable {
// Required methods
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>;
}
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>
fn upcast_any_box(self: Box<Self>) -> Box<dyn Any>
upcast boxed dyn