Trait WritePrimitive

Source
pub trait WritePrimitive<T: PointerType> {
    // Required method
    fn write_primitive(&mut self, ptr: Pointer<T>, t: T) -> Result<()>;
}
Expand description

Something that can write a primitive to wasm memory location.

Required Methods§

Source

fn write_primitive(&mut self, ptr: Pointer<T>, t: T) -> Result<()>

Write the given value t to the given memory location ptr.

Implementors§