pub struct StridedArray2DColMut<'a, T> { /* private fields */ }Expand description
A mutable view of a single column (vertical slice) of a 2D array in row-major order.
Implementations§
Source§impl<'a, T> StridedArray2DColMut<'a, T>
impl<'a, T> StridedArray2DColMut<'a, T>
pub const fn height(&self) -> usize
Sourcepub unsafe fn get_unchecked_ref(&self, i: usize) -> &T
pub unsafe fn get_unchecked_ref(&self, i: usize) -> &T
Returns a reference to the data at the given row index without bounds checking.
§Safety
The caller must ensure that i < self.height.
Sourcepub unsafe fn get_unchecked_mut(&mut self, i: usize) -> &mut T
pub unsafe fn get_unchecked_mut(&mut self, i: usize) -> &mut T
Returns a mutable reference to the data at the given row index without bounds checking.
§Safety
The caller must ensure that i < self.height.
Trait Implementations§
Source§impl<'a, T: Debug> Debug for StridedArray2DColMut<'a, T>
impl<'a, T: Debug> Debug for StridedArray2DColMut<'a, T>
Source§impl<T> Index<usize> for StridedArray2DColMut<'_, T>
impl<T> Index<usize> for StridedArray2DColMut<'_, T>
Auto Trait Implementations§
impl<'a, T> Freeze for StridedArray2DColMut<'a, T>
impl<'a, T> RefUnwindSafe for StridedArray2DColMut<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for StridedArray2DColMut<'a, T>where
T: Send,
impl<'a, T> Sync for StridedArray2DColMut<'a, T>where
T: Sync,
impl<'a, T> Unpin for StridedArray2DColMut<'a, T>
impl<'a, T> !UnwindSafe for StridedArray2DColMut<'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
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