Trait wasmer::Exportable

source ·
pub trait Exportable<'a>: Sized {
    // Required method
    fn get_self_from_extern(
        _extern: &'a Extern
    ) -> Result<&'a Self, ExportError>;
}
Expand description

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

Required Methods§

source

fn get_self_from_extern(_extern: &'a Extern) -> Result<&'a Self, ExportError>

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

Implementors§

source§

impl<'a> Exportable<'a> for Extern

source§

impl<'a> Exportable<'a> for Function

source§

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

source§

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

source§

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