Trait base::VolatileMemory

source ·
pub trait VolatileMemory {
    // Required method
    fn get_slice(
        &self,
        offset: usize,
        count: usize
    ) -> VolatileMemoryResult<VolatileSlice<'_>>;
}
Expand description

Trait for types that support raw volatile access to their data.

Required Methods§

source

fn get_slice( &self, offset: usize, count: usize ) -> VolatileMemoryResult<VolatileSlice<'_>>

Gets a slice of memory at offset that is count bytes in length and supports volatile access.

Implementors§