StoreFrom

Trait StoreFrom 

Source
pub trait StoreFrom {
    // Required method
    fn store_from(
        &self,
        memory: &mut [u8],
        address: usize,
    ) -> Result<(), TrapCode>;
}
Expand description

Allows to efficiently write bytes from a buffer into memory.

Required Methods§

Source

fn store_from(&self, memory: &mut [u8], address: usize) -> Result<(), TrapCode>

Writes bytes from self to memory.

§Errors

Traps if the memory access is out of bounds.

Implementations on Foreign Types§

Source§

impl<const N: usize> StoreFrom for [u8; N]

Source§

fn store_from(&self, memory: &mut [u8], address: usize) -> Result<(), TrapCode>

Implementors§