pub trait Write<T: Copy> { // Required method unsafe fn slice(&mut self) -> &mut [T]; // Provided method fn write(&mut self, data: &[T]) { ... } }
Trait for memory region suitable for host writes.
Get mutable slice of T bound to mapped range.
T
Write data into mapped memory sub-region.
Panics if data.len() is greater than this sub-region len.
data.len()