pub trait Instance<E, LI, M, MV, S>: Send + Sync
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>>; }

Required Methods§

source

fn export(&self, export_name: &str) -> Option<&E>

source

fn local_or_import<I: TypedIndex + LocalImportIndex>( &self, index: I ) -> Option<&LI>

source

fn memory(&self, index: usize) -> Option<&M>

source

fn memory_view(&self, index: usize) -> Option<MV>

source

fn wit_record_by_id(&self, index: u64) -> Option<&Arc<IRecordType>>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<E, LI, M, MV, S> Instance<E, LI, M, MV, S> for ()
where E: Export, LI: LocalImport<S>, M: Memory<MV, S>, MV: MemoryView<S>, S: Store,

source§

fn export(&self, _export_name: &str) -> Option<&E>

source§

fn memory(&self, _: usize) -> Option<&M>

source§

fn memory_view(&self, _index: usize) -> Option<MV>

source§

fn local_or_import<I: TypedIndex + LocalImportIndex>( &self, _index: I ) -> Option<&LI>

source§

fn wit_record_by_id(&self, _index: u64) -> Option<&Arc<IRecordType>>

Implementors§