pub struct MatrixType {
pub rows: usize,
pub columns: usize,
}
Expand description
M x N Matrix Type.
Fields§
§rows: usize
Number of rows.
columns: usize
Number of columns.
Implementations§
Trait Implementations§
Source§impl Clone for MatrixType
impl Clone for MatrixType
Source§fn clone(&self) -> MatrixType
fn clone(&self) -> MatrixType
Returns a duplicate 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 Debug for MatrixType
impl Debug for MatrixType
Source§impl Default for MatrixType
impl Default for MatrixType
Source§fn default() -> MatrixType
fn default() -> MatrixType
Returns the “default value” for a type. Read more
Source§impl Display for MatrixType
impl Display for MatrixType
Source§impl Hash for MatrixType
impl Hash for MatrixType
Source§impl Ord for MatrixType
impl Ord for MatrixType
Source§fn cmp(&self, other: &MatrixType) -> Ordering
fn cmp(&self, other: &MatrixType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl Parse for MatrixType
impl Parse for MatrixType
fn parse(pair: Pair<'_>) -> ParseResult<Self>
Source§impl PartialEq for MatrixType
impl PartialEq for MatrixType
Source§impl PartialOrd for MatrixType
impl PartialOrd for MatrixType
impl Eq for MatrixType
impl StructuralPartialEq for MatrixType
Auto Trait Implementations§
impl Freeze for MatrixType
impl RefUnwindSafe for MatrixType
impl Send for MatrixType
impl Sync for MatrixType
impl Unpin for MatrixType
impl UnwindSafe for MatrixType
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: 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>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string()
Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString
. Read more