wasmer_engine_universal_artifact

Trait Upcastable

Source
pub trait Upcastable {
    // Required methods
    fn upcast_any_ref(&self) -> &(dyn Any + 'static);
    fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static);
    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 + 'static)

upcast ref

Source

fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)

upcast mut ref

Source

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

upcast boxed dyn

Implementors§

Source§

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