Enum kernel::utilities::mut_imut_buffer::MutImutBuffer
source · pub enum MutImutBuffer<'a, T> {
Mutable(&'a mut [T]),
Immutable(&'a [T]),
}
Expand description
An enum which can hold either a mutable or an immutable buffer.
Variants§
Implementations§
Auto Trait Implementations§
impl<'a, T> Freeze for MutImutBuffer<'a, T>
impl<'a, T> RefUnwindSafe for MutImutBuffer<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for MutImutBuffer<'a, T>
impl<'a, T> Sync for MutImutBuffer<'a, T>where
T: Sync,
impl<'a, T> Unpin for MutImutBuffer<'a, T>
impl<'a, T> !UnwindSafe for MutImutBuffer<'a, T>
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