Trait base::volatile_memory::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§
sourcefn get_slice(
&self,
offset: usize,
count: usize
) -> VolatileMemoryResult<VolatileSlice<'_>>
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.