[−][src]Trait wasmer_runtime_core::export::Exportable
This trait is used to mark types as gettable from an Instance.
Required methods
fn to_export(&self) -> Export
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>
Implementation of how to get the export corresponding to the implementing type
from an Instance by name.
Implementations on Foreign Types
impl<'a> Exportable<'a> for Memory[src]
fn to_export(&self) -> Export[src]
fn get_self_from_extern(_extern: &'a Extern) -> Result<&'a Memory, ExportError>[src]
impl<'a> Exportable<'a> for Table[src]
fn to_export(&self) -> Export[src]
fn get_self_from_extern(_extern: &'a Extern) -> Result<&'a Table, ExportError>[src]
impl<'a> Exportable<'a> for Function[src]
fn to_export(&self) -> Export[src]
fn get_self_from_extern(
_extern: &'a Extern
) -> Result<&'a Function, ExportError>[src]
_extern: &'a Extern
) -> Result<&'a Function, ExportError>
impl<'a> Exportable<'a> for Global[src]
fn to_export(&self) -> Export[src]
fn get_self_from_extern(_extern: &'a Extern) -> Result<&'a Global, ExportError>[src]
Implementors
impl<'a> Exportable<'a> for Extern[src]
fn to_export(&self) -> Export[src]
fn get_self_from_extern(_extern: &'a Extern) -> Result<&'a Extern, ExportError>[src]
impl<'a> Exportable<'a> for wasmer_runtime_core::global::Global[src]
fn to_export(&self) -> Export[src]
fn get_self_from_extern(r#extern: &'a Extern) -> Result<&'a Self, ExportError>[src]
impl<'a> Exportable<'a> for wasmer_runtime_core::memory::Memory[src]
fn to_export(&self) -> Export[src]
fn get_self_from_extern(r#extern: &'a Extern) -> Result<&'a Self, ExportError>[src]
impl<'a> Exportable<'a> for wasmer_runtime_core::table::Table[src]
fn to_export(&self) -> Export[src]
fn get_self_from_extern(r#extern: &'a Extern) -> Result<&'a Self, ExportError>[src]
impl<'a> Exportable<'a> for DynamicFunc[src]
fn to_export(&self) -> Export[src]
fn get_self_from_extern(r#extern: &'a Extern) -> Result<&'a Self, ExportError>[src]
impl<'a, Args, Rets> Exportable<'a> for Func<Args, Rets> where
Args: WasmTypeList,
Rets: WasmTypeList, [src]
Args: WasmTypeList,
Rets: WasmTypeList,