[−][src]Trait wasmer::Exportable
This trait is used to mark types as gettable from an Instance
.
Required methods
pub 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
.
pub fn get_self_from_extern(
_extern: &'a Extern
) -> Result<&'a Self, ExportError>
[src]
_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
impl<'a> Exportable<'a> for Extern
[src]
pub fn to_export(&self) -> Export
[src]
pub fn get_self_from_extern(_extern: &'a Self) -> Result<&'a Self, ExportError>
[src]
impl<'a> Exportable<'a> for Function
[src]
pub fn to_export(&self) -> Export
[src]
pub fn get_self_from_extern(
_extern: &'a Extern
) -> Result<&'a Self, ExportError>
[src]
_extern: &'a Extern
) -> Result<&'a Self, ExportError>
impl<'a> Exportable<'a> for Global
[src]
pub fn to_export(&self) -> Export
[src]
pub fn get_self_from_extern(
_extern: &'a Extern
) -> Result<&'a Self, ExportError>
[src]
_extern: &'a Extern
) -> Result<&'a Self, ExportError>
impl<'a> Exportable<'a> for Memory
[src]
pub fn to_export(&self) -> Export
[src]
pub fn get_self_from_extern(
_extern: &'a Extern
) -> Result<&'a Self, ExportError>
[src]
_extern: &'a Extern
) -> Result<&'a Self, ExportError>
impl<'a> Exportable<'a> for Table
[src]
pub fn to_export(&self) -> Export
[src]
pub fn get_self_from_extern(
_extern: &'a Extern
) -> Result<&'a Self, ExportError>
[src]
_extern: &'a Extern
) -> Result<&'a Self, ExportError>