Exportable

Trait Exportable 

Source
pub trait Exportable<'a>: Sized {
    // Required method
    fn get_self(exports: &'a Exports, name: &str) -> ResolveResult<Self>;
}
Expand description

This trait is used to mark types as gettable from an [Instance].

Required Methods§

Source

fn get_self(exports: &'a Exports, name: &str) -> ResolveResult<Self>

Implementation of how to get the export corresponding to the implementing type from an [Instance] by name.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<'a> Exportable<'a> for Global

Source§

impl<'a> Exportable<'a> for Memory

Source§

impl<'a> Exportable<'a> for DynFunc<'a>

Source§

impl<'a> Exportable<'a> for Table

Source§

impl<'a, Args: WasmTypeList, Rets: WasmTypeList> Exportable<'a> for Func<'a, Args, Rets, Wasm>