pub trait InternalExt {
    // Required methods
    fn memory(&self) -> &PluginMemory;
    fn memory_mut(&mut self) -> &mut PluginMemory;

    // Provided methods
    fn store(&self) -> &Store<Internal> { ... }
    fn store_mut(&mut self) -> &mut Store<Internal> { ... }
    fn internal(&self) -> &Internal { ... }
    fn internal_mut(&mut self) -> &mut Internal { ... }
}
Expand description

InternalExt provides a unified way of acessing memory, store and internal values

Required Methods§

source

fn memory(&self) -> &PluginMemory

source

fn memory_mut(&mut self) -> &mut PluginMemory

Provided Methods§

source

fn store(&self) -> &Store<Internal>

source

fn store_mut(&mut self) -> &mut Store<Internal>

source

fn internal(&self) -> &Internal

source

fn internal_mut(&mut self) -> &mut Internal

Implementors§