pub struct TransposableSubmatrix<'a, V: AsPointerToSlice<T>, T, const TRANSPOSED: bool> { /* private fields */ }
unstable-enable
only.Expand description
§Availability
This API is marked as unstable and is only available when the unstable-enable
crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.
Implementations§
Source§impl<'a, V: AsPointerToSlice<T>, T> TransposableSubmatrix<'a, V, T, false>
impl<'a, V: AsPointerToSlice<T>, T> TransposableSubmatrix<'a, V, T, false>
Sourcepub fn transpose(self) -> TransposableSubmatrix<'a, V, T, true>
pub fn transpose(self) -> TransposableSubmatrix<'a, V, T, true>
§Availability
This API is marked as unstable and is only available when the unstable-enable
crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.
Source§impl<'a, V: AsPointerToSlice<T>, T> TransposableSubmatrix<'a, V, T, true>
impl<'a, V: AsPointerToSlice<T>, T> TransposableSubmatrix<'a, V, T, true>
Sourcepub fn transpose(self) -> TransposableSubmatrix<'a, V, T, false>
pub fn transpose(self) -> TransposableSubmatrix<'a, V, T, false>
§Availability
This API is marked as unstable and is only available when the unstable-enable
crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.
Source§impl<'a, V: AsPointerToSlice<T>, T, const TRANSPOSED: bool> TransposableSubmatrix<'a, V, T, TRANSPOSED>
impl<'a, V: AsPointerToSlice<T>, T, const TRANSPOSED: bool> TransposableSubmatrix<'a, V, T, TRANSPOSED>
Sourcepub fn into_base(self) -> Submatrix<'a, V, T>
pub fn into_base(self) -> Submatrix<'a, V, T>
§Availability
This API is marked as unstable and is only available when the unstable-enable
crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.
Sourcepub fn into_base_transposed(self) -> Submatrix<'a, V, T>
pub fn into_base_transposed(self) -> Submatrix<'a, V, T>
§Availability
This API is marked as unstable and is only available when the unstable-enable
crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.
Sourcepub fn submatrix(self, rows: Range<usize>, cols: Range<usize>) -> Self
pub fn submatrix(self, rows: Range<usize>, cols: Range<usize>) -> Self
§Availability
This API is marked as unstable and is only available when the unstable-enable
crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.
Sourcepub fn restrict_rows(self, rows: Range<usize>) -> Self
pub fn restrict_rows(self, rows: Range<usize>) -> Self
§Availability
This API is marked as unstable and is only available when the unstable-enable
crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.
Sourcepub fn into_at(self, i: usize, j: usize) -> &'a T
pub fn into_at(self, i: usize, j: usize) -> &'a T
§Availability
This API is marked as unstable and is only available when the unstable-enable
crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.
Sourcepub fn at<'b>(&'b self, i: usize, j: usize) -> &'b T
pub fn at<'b>(&'b self, i: usize, j: usize) -> &'b T
§Availability
This API is marked as unstable and is only available when the unstable-enable
crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.
Sourcepub fn restrict_cols(self, cols: Range<usize>) -> Self
pub fn restrict_cols(self, cols: Range<usize>) -> Self
§Availability
This API is marked as unstable and is only available when the unstable-enable
crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.
Trait Implementations§
Source§impl<'a, V: AsPointerToSlice<T>, T, const TRANSPOSED: bool> Clone for TransposableSubmatrix<'a, V, T, TRANSPOSED>
impl<'a, V: AsPointerToSlice<T>, T, const TRANSPOSED: bool> Clone for TransposableSubmatrix<'a, V, T, TRANSPOSED>
Source§impl<'a, V: AsPointerToSlice<T>, T> From<Submatrix<'a, V, T>> for TransposableSubmatrix<'a, V, T, false>
impl<'a, V: AsPointerToSlice<T>, T> From<Submatrix<'a, V, T>> for TransposableSubmatrix<'a, V, T, false>
Source§impl<'a, V: AsPointerToSlice<T>, T, const TRANSPOSED: bool> MatrixCompare<T> for TransposableSubmatrix<'a, V, T, TRANSPOSED>
impl<'a, V: AsPointerToSlice<T>, T, const TRANSPOSED: bool> MatrixCompare<T> for TransposableSubmatrix<'a, V, T, TRANSPOSED>
impl<'a, V: AsPointerToSlice<T>, T, const TRANSPOSED: bool> Copy for TransposableSubmatrix<'a, V, T, TRANSPOSED>
Auto Trait Implementations§
impl<'a, V, T, const TRANSPOSED: bool> Freeze for TransposableSubmatrix<'a, V, T, TRANSPOSED>
impl<'a, V, T, const TRANSPOSED: bool> RefUnwindSafe for TransposableSubmatrix<'a, V, T, TRANSPOSED>where
T: RefUnwindSafe,
V: RefUnwindSafe,
impl<'a, V, T, const TRANSPOSED: bool> Send for TransposableSubmatrix<'a, V, T, TRANSPOSED>
impl<'a, V, T, const TRANSPOSED: bool> Sync for TransposableSubmatrix<'a, V, T, TRANSPOSED>
impl<'a, V, T, const TRANSPOSED: bool> Unpin for TransposableSubmatrix<'a, V, T, TRANSPOSED>
impl<'a, V, T, const TRANSPOSED: bool> UnwindSafe for TransposableSubmatrix<'a, V, T, TRANSPOSED>where
T: RefUnwindSafe,
V: RefUnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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