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 Engines to work.

Required Methods§

source

fn upcast_any_ref(&self) -> &dyn Any

upcast ref

source

fn upcast_any_mut(&mut self) -> &mut dyn Any

upcast mut ref

source

fn upcast_any_box(self: Box<Self>) -> Box<dyn Any>

upcast boxed dyn

Implementors§

source§

impl<T: Any + Send + Sync + 'static> Upcastable for T