pub enum MatrixComparisonFailure<T, Error> {
MismatchedDimensions(DimensionMismatch),
MismatchedElements(ElementsMismatch<T, Error>),
SparseEntryOutOfBounds(Entry),
DuplicateSparseEntry(Entry),
}
Expand description
The error type associated with matrix comparison.
Variants§
MismatchedDimensions(DimensionMismatch)
MismatchedElements(ElementsMismatch<T, Error>)
SparseEntryOutOfBounds(Entry)
DuplicateSparseEntry(Entry)
Trait Implementations§
Source§impl<T: Clone, Error: Clone> Clone for MatrixComparisonFailure<T, Error>
impl<T: Clone, Error: Clone> Clone for MatrixComparisonFailure<T, Error>
Source§fn clone(&self) -> MatrixComparisonFailure<T, Error>
fn clone(&self) -> MatrixComparisonFailure<T, Error>
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<T, Error> Display for MatrixComparisonFailure<T, Error>
impl<T, Error> Display for MatrixComparisonFailure<T, Error>
Source§impl<T, E> Error for MatrixComparisonFailure<T, E>
impl<T, E> Error for MatrixComparisonFailure<T, E>
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl<T: PartialEq, Error: PartialEq> PartialEq for MatrixComparisonFailure<T, Error>
impl<T: PartialEq, Error: PartialEq> PartialEq for MatrixComparisonFailure<T, Error>
Source§fn eq(&self, other: &MatrixComparisonFailure<T, Error>) -> bool
fn eq(&self, other: &MatrixComparisonFailure<T, Error>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl<T, Error> StructuralPartialEq for MatrixComparisonFailure<T, Error>
Auto Trait Implementations§
impl<T, Error> Freeze for MatrixComparisonFailure<T, Error>
impl<T, Error> RefUnwindSafe for MatrixComparisonFailure<T, Error>where
T: RefUnwindSafe,
Error: RefUnwindSafe,
impl<T, Error> Send for MatrixComparisonFailure<T, Error>
impl<T, Error> Sync for MatrixComparisonFailure<T, Error>
impl<T, Error> Unpin for MatrixComparisonFailure<T, Error>
impl<T, Error> UnwindSafe for MatrixComparisonFailure<T, Error>where
T: UnwindSafe,
Error: 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