pub struct Arr2ViewMut<'a, T, const N1: usize, const N2: usize> { /* private fields */ }Expand description
Implementation of a mutable view of a fixed-length 2D array
Implementations§
Source§impl<'a, T, const N1: usize, const N2: usize> Arr2ViewMut<'a, T, N1, N2>
impl<'a, T, const N1: usize, const N2: usize> Arr2ViewMut<'a, T, N1, N2>
Sourcepub fn iter_mut(&'a mut self) -> Arr2IterMut<'a, T, N2> ⓘ
pub fn iter_mut(&'a mut self) -> Arr2IterMut<'a, T, N2> ⓘ
Obtaining a mutable iterator
Sourcepub fn as_mut_ptr(&mut self) -> *mut T
pub fn as_mut_ptr(&mut self) -> *mut T
Returns a writable pointer to an internal buffer
Trait Implementations§
Source§impl<'a, T, const N1: usize, const N2: usize> AsRawMutSlice<'a, T> for Arr2ViewMut<'a, T, N1, N2>
impl<'a, T, const N1: usize, const N2: usize> AsRawMutSlice<'a, T> for Arr2ViewMut<'a, T, N1, N2>
fn as_raw_mut_slice(&'a mut self) -> ShieldSlice<'a, T>
Source§impl<'a, T, const N1: usize, const N2: usize> AsRawSlice<T> for Arr2ViewMut<'a, T, N1, N2>
impl<'a, T, const N1: usize, const N2: usize> AsRawSlice<T> for Arr2ViewMut<'a, T, N1, N2>
fn as_raw_slice(&self) -> &[T]
Source§impl<'a, T: PartialEq, const N1: usize, const N2: usize> PartialEq for Arr2ViewMut<'a, T, N1, N2>
impl<'a, T: PartialEq, const N1: usize, const N2: usize> PartialEq for Arr2ViewMut<'a, T, N1, N2>
impl<'a, T: Eq, const N1: usize, const N2: usize> Eq for Arr2ViewMut<'a, T, N1, N2>
impl<'a, T, const N1: usize, const N2: usize> StructuralPartialEq for Arr2ViewMut<'a, T, N1, N2>
Auto Trait Implementations§
impl<'a, T, const N1: usize, const N2: usize> Freeze for Arr2ViewMut<'a, T, N1, N2>
impl<'a, T, const N1: usize, const N2: usize> RefUnwindSafe for Arr2ViewMut<'a, T, N1, N2>where
T: RefUnwindSafe,
impl<'a, T, const N1: usize, const N2: usize> Send for Arr2ViewMut<'a, T, N1, N2>where
T: Send,
impl<'a, T, const N1: usize, const N2: usize> Sync for Arr2ViewMut<'a, T, N1, N2>where
T: Sync,
impl<'a, T, const N1: usize, const N2: usize> Unpin for Arr2ViewMut<'a, T, N1, N2>
impl<'a, T, const N1: usize, const N2: usize> !UnwindSafe for Arr2ViewMut<'a, T, N1, N2>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more