Struct wasmtime::InstanceType [−][src]
pub struct InstanceType { /* fields omitted */ }A descriptor for a WebAssembly instance type.
This is a part of the WebAssembly module-linking proposal.
Implementations
impl InstanceType[src]
impl InstanceType[src]pub fn new() -> InstanceType[src]
Creates a new empty instance type.
pub fn add_named_export(&mut self, name: &str, ty: ExternType)[src]
Adds a new export to this ModuleType.
pub fn exports(&self) -> impl ExactSizeIterator<Item = ExportType<'_>>[src]
Returns the list of exports associated with this module type.
Trait Implementations
impl Clone for InstanceType[src]
impl Clone for InstanceType[src]fn clone(&self) -> InstanceType[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl From<InstanceType> for ExternType[src]
impl From<InstanceType> for ExternType[src]