pub trait Memory<WB: WasmBackend>: Memory<<WB as WasmBackend>::MemoryView, DelayedContextLifetime<WB>> + Clone + Send + Sync + 'static {
    // Required method
    fn size(&self, store: &mut <WB as WasmBackend>::ContextMut<'_>) -> usize;
}
Expand description

A wasm memory handle. As it is only a handle to an object in Store, cloning is cheap.

Required Methods§

source

fn size(&self, store: &mut <WB as WasmBackend>::ContextMut<'_>) -> usize

Get the size of the allocated memory in bytes.

Object Safety§

This trait is not object safe.

Implementors§