Struct p3_matrix::stack::VerticalPair
source · pub struct VerticalPair<First, Second> { /* private fields */ }
Expand description
A combination of two matrices, stacked together vertically.
Implementations§
Trait Implementations§
source§impl<First: Clone, Second: Clone> Clone for VerticalPair<First, Second>
impl<First: Clone, Second: Clone> Clone for VerticalPair<First, Second>
source§fn clone(&self) -> VerticalPair<First, Second>
fn clone(&self) -> VerticalPair<First, Second>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T: Send + Sync, First: Matrix<T>, Second: Matrix<T>> Matrix<T> for VerticalPair<First, Second>
impl<T: Send + Sync, First: Matrix<T>, Second: Matrix<T>> Matrix<T> for VerticalPair<First, Second>
fn width(&self) -> usize
fn height(&self) -> usize
type Row<'a> = EitherRow<<First as Matrix<T>>::Row<'a>, <Second as Matrix<T>>::Row<'a>> where Self: 'a
fn get(&self, r: usize, c: usize) -> T
fn row(&self, r: usize) -> Self::Row<'_>
fn row_slice(&self, r: usize) -> impl Deref<Target = [T]>
fn dimensions(&self) -> Dimensions
fn rows(&self) -> impl Iterator<Item = Self::Row<'_>>
fn par_rows(&self) -> impl IndexedParallelIterator<Item = Self::Row<'_>>
fn first_row(&self) -> Self::Row<'_>
fn last_row(&self) -> Self::Row<'_>
source§fn vertically_packed_row<P>(&self, r: usize) -> impl Iterator<Item = P>where
P: PackedValue<Value = T>,
fn vertically_packed_row<P>(&self, r: usize) -> impl Iterator<Item = P>where
P: PackedValue<Value = T>,
Wraps at the end.
fn vertically_strided(
self,
stride: usize,
offset: usize,
) -> VerticallyStridedMatrixView<Self>where
Self: Sized,
impl<First: Copy, Second: Copy> Copy for VerticalPair<First, Second>
Auto Trait Implementations§
impl<First, Second> Freeze for VerticalPair<First, Second>
impl<First, Second> RefUnwindSafe for VerticalPair<First, Second>where
First: RefUnwindSafe,
Second: RefUnwindSafe,
impl<First, Second> Send for VerticalPair<First, Second>
impl<First, Second> Sync for VerticalPair<First, Second>
impl<First, Second> Unpin for VerticalPair<First, Second>
impl<First, Second> UnwindSafe for VerticalPair<First, Second>where
First: UnwindSafe,
Second: UnwindSafe,
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> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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