wasmer_compiler

Trait 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