pub struct ByteWorkspaceMut<'a> {
pub device: &'a mut DeviceMemory<u8>,
pub host: &'a mut [u8],
}Expand description
A mutable reference to a byte workspace buffer on the device.
Fields§
§device: &'a mut DeviceMemory<u8>§host: &'a mut [u8]Implementations§
Source§impl<'a> ByteWorkspaceMut<'a>
impl<'a> ByteWorkspaceMut<'a>
pub const fn new(device: &'a mut DeviceMemory<u8>, host: &'a mut [u8]) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ByteWorkspaceMut<'a>
impl<'a> RefUnwindSafe for ByteWorkspaceMut<'a>
impl<'a> Send for ByteWorkspaceMut<'a>
impl<'a> Sync for ByteWorkspaceMut<'a>
impl<'a> Unpin for ByteWorkspaceMut<'a>
impl<'a> UnsafeUnpin for ByteWorkspaceMut<'a>
impl<'a> !UnwindSafe for ByteWorkspaceMut<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more