pub trait LinearMemorywhere
    Self: Debug + Send,
{ fn ty(&self) -> MemoryType; fn size(&self) -> Pages; fn style(&self) -> MemoryStyle; fn grow(&mut self, delta: Pages) -> Result<Pages, MemoryError>; fn vmmemory(&self) -> NonNull<VMMemoryDefinition>; fn try_clone(&self) -> Option<Box<dyn LinearMemory + 'static>>; }
Expand description

Represents memory that is used by the WebAsssembly module

Required Methods§

Returns the type for this memory.

Returns the size of hte memory in pages

Returns the memory style for this memory.

Grow memory by the specified amount of wasm pages.

Returns None if memory can’t be grown by the specified amount of wasm pages.

Return a VMMemoryDefinition for exposing the memory to compiled wasm code.

Attempts to clone this memory (if its clonable)

Implementors§