pub trait DeviceMemory {
// Required methods
unsafe fn copy_nonoverlapping(
&self,
src: *const u8,
dst: *mut u8,
size: usize,
direction: CopyDirection,
) -> Result<(), CopyError>;
unsafe fn write_bytes(
&self,
dst: *mut u8,
value: u8,
size: usize,
) -> Result<(), CopyError>;
}Expand description
A trait that defines memory operations for a device.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".