Trait wasmer_interface_types_fl::interpreter::wasm::structures::Instance
source · pub trait Instance<E, LI, M, MV, S>where
E: Export,
LI: LocalImport<S>,
M: Memory<MV, S>,
MV: MemoryView<S>,
S: Store,{
// Required methods
fn export(&self, export_name: &str) -> Option<&E>;
fn local_or_import<I: TypedIndex + LocalImportIndex>(
&self,
index: I
) -> Option<&LI>;
fn memory(&self, index: usize) -> Option<&M>;
fn memory_view(&self, index: usize) -> Option<MV>;
fn wit_record_by_id(&self, index: u64) -> Option<&Arc<IRecordType>>;
}