Struct wasmtime::Export [−][src]
pub struct Export<'instance> { /* fields omitted */ }An exported WebAssembly value.
This type is primarily accessed from the
Instance::exports accessor and describes what
names and items are exported from a wasm instance.
Implementations
impl<'instance> Export<'instance>[src]
impl<'instance> Export<'instance>[src]pub fn name(&self) -> &'instance str[src]
Returns the name by which this export is known.
pub fn ty(&self) -> ExternType[src]
Return the ExternType of this export.
pub fn into_extern(self) -> Extern[src]
Consume this Export and return the contained Extern.
pub fn into_func(self) -> Option<Func>[src]
Consume this Export and return the contained Func, if it’s a function,
or None otherwise.
pub fn into_table(self) -> Option<Table>[src]
Consume this Export and return the contained Table, if it’s a table,
or None otherwise.
pub fn into_memory(self) -> Option<Memory>[src]
Consume this Export and return the contained Memory, if it’s a memory,
or None otherwise.
pub fn into_global(self) -> Option<Global>[src]
Consume this Export and return the contained Global, if it’s a global,
or None otherwise.