wasmer

Trait AsEngineRef

Source
pub trait AsEngineRef {
    // Required method
    fn as_engine_ref(&self) -> EngineRef<'_>;

    // Provided method
    fn maybe_as_store(&self) -> Option<StoreRef<'_>> { ... }
}
Expand description

Helper trait for a value that is convertible to a EngineRef.

Required Methods§

Source

fn as_engine_ref(&self) -> EngineRef<'_>

Returns a EngineRef pointing to the underlying context.

Provided Methods§

Source

fn maybe_as_store(&self) -> Option<StoreRef<'_>>

Returns an optional StoreRef is the passed reference is a Store.

Implementors§