Trait wasmer_near::Exportable[][src]

pub trait Exportable<'a>: Sized {
    fn to_export(&self) -> Export;
fn get_self_from_extern(
        _extern: &'a Extern
    ) -> Result<&'a Self, ExportError>; }

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

Required methods

fn to_export(&self) -> Export[src]

This function is used when providedd the Extern as exportable, so it can be used while instantiating the Module.

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

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

Loading content...

Implementors

impl<'a> Exportable<'a> for Extern[src]

impl<'a> Exportable<'a> for Function[src]

impl<'a> Exportable<'a> for Global[src]

impl<'a> Exportable<'a> for Memory[src]

impl<'a> Exportable<'a> for Table[src]

Loading content...