Struct rulinalg::macros::AbsoluteElementwiseComparator
source · [−]pub struct AbsoluteElementwiseComparator<T> {
pub tol: T,
}
Expand description
The abs
comparator used with assert_matrix_eq!.
Fields
tol: T
The maximum absolute difference tolerated (inclusive).
Trait Implementations
sourceimpl<T: Clone> Clone for AbsoluteElementwiseComparator<T>
impl<T: Clone> Clone for AbsoluteElementwiseComparator<T>
sourcefn clone(&self) -> AbsoluteElementwiseComparator<T>
fn clone(&self) -> AbsoluteElementwiseComparator<T>
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<T: Debug> Debug for AbsoluteElementwiseComparator<T>
impl<T: Debug> Debug for AbsoluteElementwiseComparator<T>
sourceimpl<T: PartialEq> PartialEq<AbsoluteElementwiseComparator<T>> for AbsoluteElementwiseComparator<T>
impl<T: PartialEq> PartialEq<AbsoluteElementwiseComparator<T>> for AbsoluteElementwiseComparator<T>
sourcefn eq(&self, other: &AbsoluteElementwiseComparator<T>) -> bool
fn eq(&self, other: &AbsoluteElementwiseComparator<T>) -> bool
impl<T: Copy> Copy for AbsoluteElementwiseComparator<T>
impl<T> StructuralPartialEq for AbsoluteElementwiseComparator<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for AbsoluteElementwiseComparator<T>where
T: RefUnwindSafe,
impl<T> Send for AbsoluteElementwiseComparator<T>where
T: Send,
impl<T> Sync for AbsoluteElementwiseComparator<T>where
T: Sync,
impl<T> Unpin for AbsoluteElementwiseComparator<T>where
T: Unpin,
impl<T> UnwindSafe for AbsoluteElementwiseComparator<T>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more