Trait rin::math::AbsDiffEq [−][src]
pub trait AbsDiffEq<Rhs = Self>: PartialEq<Rhs> where
Rhs: ?Sized, { type Epsilon; pub fn default_epsilon() -> Self::Epsilon; pub fn abs_diff_eq(&self, other: &Rhs, epsilon: Self::Epsilon) -> bool; pub fn abs_diff_ne(&self, other: &Rhs, epsilon: Self::Epsilon) -> bool { ... } }
Equality that is defined using the absolute difference of two numbers.
Associated Types
Loading content...Required methods
pub fn default_epsilon() -> Self::Epsilon
[src]
The default tolerance to use when testing values that are close together.
This is used when no epsilon
value is supplied to the [abs_diff_eq!
], [relative_eq!
],
or [ulps_eq!
] macros.
pub fn abs_diff_eq(&self, other: &Rhs, epsilon: Self::Epsilon) -> bool
[src]
A test for equality that uses the absolute difference to compute the approximate equality of two numbers.
Provided methods
pub fn abs_diff_ne(&self, other: &Rhs, epsilon: Self::Epsilon) -> bool
[src]
The inverse of AbsDiffEq::abs_diff_eq
.
Implementations on Foreign Types
impl<'a, T> AbsDiffEq<&'a T> for &'a T where
T: AbsDiffEq<T> + ?Sized,
[src]
impl<'a, T> AbsDiffEq<&'a T> for &'a T where
T: AbsDiffEq<T> + ?Sized,
[src]impl<T> AbsDiffEq<RefCell<T>> for RefCell<T> where
T: AbsDiffEq<T> + ?Sized,
[src]
impl<T> AbsDiffEq<RefCell<T>> for RefCell<T> where
T: AbsDiffEq<T> + ?Sized,
[src]impl AbsDiffEq<i32> for i32
[src]
impl AbsDiffEq<i32> for i32
[src]type Epsilon = i32
pub fn default_epsilon() -> i32
[src]
pub fn abs_diff_eq(&self, other: &i32, epsilon: i32) -> bool
[src]
impl<'a, T> AbsDiffEq<&'a mut T> for &'a mut T where
T: AbsDiffEq<T> + ?Sized,
[src]
impl<'a, T> AbsDiffEq<&'a mut T> for &'a mut T where
T: AbsDiffEq<T> + ?Sized,
[src]impl AbsDiffEq<u32> for u32
[src]
impl AbsDiffEq<u32> for u32
[src]type Epsilon = u32
pub fn default_epsilon() -> u32
[src]
pub fn abs_diff_eq(&self, other: &u32, epsilon: u32) -> bool
[src]
impl AbsDiffEq<isize> for isize
[src]
impl AbsDiffEq<isize> for isize
[src]type Epsilon = isize
pub fn default_epsilon() -> isize
[src]
pub fn abs_diff_eq(&self, other: &isize, epsilon: isize) -> bool
[src]
impl AbsDiffEq<usize> for usize
[src]
impl AbsDiffEq<usize> for usize
[src]type Epsilon = usize
pub fn default_epsilon() -> usize
[src]
pub fn abs_diff_eq(&self, other: &usize, epsilon: usize) -> bool
[src]
impl AbsDiffEq<f64> for f64
[src]
impl AbsDiffEq<f64> for f64
[src]type Epsilon = f64
pub fn default_epsilon() -> f64
[src]
pub fn abs_diff_eq(&self, other: &f64, epsilon: f64) -> bool
[src]
impl<T> AbsDiffEq<Cell<T>> for Cell<T> where
T: AbsDiffEq<T> + Copy,
[src]
impl<T> AbsDiffEq<Cell<T>> for Cell<T> where
T: AbsDiffEq<T> + Copy,
[src]impl AbsDiffEq<f32> for f32
[src]
impl AbsDiffEq<f32> for f32
[src]type Epsilon = f32
pub fn default_epsilon() -> f32
[src]
pub fn abs_diff_eq(&self, other: &f32, epsilon: f32) -> bool
[src]
impl AbsDiffEq<i16> for i16
[src]
impl AbsDiffEq<i16> for i16
[src]type Epsilon = i16
pub fn default_epsilon() -> i16
[src]
pub fn abs_diff_eq(&self, other: &i16, epsilon: i16) -> bool
[src]
impl<A, B> AbsDiffEq<[B]> for [A] where
A: AbsDiffEq<B>,
<A as AbsDiffEq<B>>::Epsilon: Clone,
[src]
impl<A, B> AbsDiffEq<[B]> for [A] where
A: AbsDiffEq<B>,
<A as AbsDiffEq<B>>::Epsilon: Clone,
[src]impl AbsDiffEq<u16> for u16
[src]
impl AbsDiffEq<u16> for u16
[src]type Epsilon = u16
pub fn default_epsilon() -> u16
[src]
pub fn abs_diff_eq(&self, other: &u16, epsilon: u16) -> bool
[src]
impl AbsDiffEq<i8> for i8
[src]
impl AbsDiffEq<i8> for i8
[src]type Epsilon = i8
pub fn default_epsilon() -> i8
[src]
pub fn abs_diff_eq(&self, other: &i8, epsilon: i8) -> bool
[src]
impl AbsDiffEq<i64> for i64
[src]
impl AbsDiffEq<i64> for i64
[src]type Epsilon = i64
pub fn default_epsilon() -> i64
[src]
pub fn abs_diff_eq(&self, other: &i64, epsilon: i64) -> bool
[src]
impl AbsDiffEq<u64> for u64
[src]
impl AbsDiffEq<u64> for u64
[src]type Epsilon = u64
pub fn default_epsilon() -> u64
[src]
pub fn abs_diff_eq(&self, other: &u64, epsilon: u64) -> bool
[src]
impl AbsDiffEq<u8> for u8
[src]
impl AbsDiffEq<u8> for u8
[src]type Epsilon = u8
pub fn default_epsilon() -> u8
[src]
pub fn abs_diff_eq(&self, other: &u8, epsilon: u8) -> bool
[src]
Implementors
impl<N> AbsDiffEq<Quaternion<N>> for Quaternion<N> where
N: RealField<Epsilon = N> + AbsDiffEq<N>,
[src]
impl<N> AbsDiffEq<Quaternion<N>> for Quaternion<N> where
N: RealField<Epsilon = N> + AbsDiffEq<N>,
[src]type Epsilon = N
pub fn default_epsilon() -> <Quaternion<N> as AbsDiffEq<Quaternion<N>>>::Epsilon
[src]
pub fn abs_diff_eq(
&self,
other: &Quaternion<N>,
epsilon: <Quaternion<N> as AbsDiffEq<Quaternion<N>>>::Epsilon
) -> bool
[src]
&self,
other: &Quaternion<N>,
epsilon: <Quaternion<N> as AbsDiffEq<Quaternion<N>>>::Epsilon
) -> bool
impl<N> AbsDiffEq<Unit<Quaternion<N>>> for Unit<Quaternion<N>> where
N: RealField<Epsilon = N> + AbsDiffEq<N>,
[src]
impl<N> AbsDiffEq<Unit<Quaternion<N>>> for Unit<Quaternion<N>> where
N: RealField<Epsilon = N> + AbsDiffEq<N>,
[src]type Epsilon = N
pub fn default_epsilon(
) -> <Unit<Quaternion<N>> as AbsDiffEq<Unit<Quaternion<N>>>>::Epsilon
[src]
) -> <Unit<Quaternion<N>> as AbsDiffEq<Unit<Quaternion<N>>>>::Epsilon
pub fn abs_diff_eq(
&self,
other: &Unit<Quaternion<N>>,
epsilon: <Unit<Quaternion<N>> as AbsDiffEq<Unit<Quaternion<N>>>>::Epsilon
) -> bool
[src]
&self,
other: &Unit<Quaternion<N>>,
epsilon: <Unit<Quaternion<N>> as AbsDiffEq<Unit<Quaternion<N>>>>::Epsilon
) -> bool
impl<N, D> AbsDiffEq<Point<N, D>> for Point<N, D> where
N: Scalar + AbsDiffEq<N>,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
<N as AbsDiffEq<N>>::Epsilon: Copy,
[src]
impl<N, D> AbsDiffEq<Point<N, D>> for Point<N, D> where
N: Scalar + AbsDiffEq<N>,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
<N as AbsDiffEq<N>>::Epsilon: Copy,
[src]impl<N, D> AbsDiffEq<Rotation<N, D>> for Rotation<N, D> where
N: Scalar + AbsDiffEq<N>,
D: DimName,
DefaultAllocator: Allocator<N, D, D>,
<N as AbsDiffEq<N>>::Epsilon: Copy,
[src]
impl<N, D> AbsDiffEq<Rotation<N, D>> for Rotation<N, D> where
N: Scalar + AbsDiffEq<N>,
D: DimName,
DefaultAllocator: Allocator<N, D, D>,
<N as AbsDiffEq<N>>::Epsilon: Copy,
[src]impl<N, D> AbsDiffEq<Translation<N, D>> for Translation<N, D> where
N: Scalar + AbsDiffEq<N>,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
<N as AbsDiffEq<N>>::Epsilon: Copy,
[src]
impl<N, D> AbsDiffEq<Translation<N, D>> for Translation<N, D> where
N: Scalar + AbsDiffEq<N>,
D: DimName,
DefaultAllocator: Allocator<N, D, U1>,
<N as AbsDiffEq<N>>::Epsilon: Copy,
[src]type Epsilon = <N as AbsDiffEq<N>>::Epsilon
pub fn default_epsilon(
) -> <Translation<N, D> as AbsDiffEq<Translation<N, D>>>::Epsilon
[src]
) -> <Translation<N, D> as AbsDiffEq<Translation<N, D>>>::Epsilon
pub fn abs_diff_eq(
&self,
other: &Translation<N, D>,
epsilon: <Translation<N, D> as AbsDiffEq<Translation<N, D>>>::Epsilon
) -> bool
[src]
&self,
other: &Translation<N, D>,
epsilon: <Translation<N, D> as AbsDiffEq<Translation<N, D>>>::Epsilon
) -> bool
impl<N, D, C> AbsDiffEq<Transform<N, D, C>> for Transform<N, D, C> where
C: TCategory,
N: RealField,
D: DimNameAdd<U1>,
<N as AbsDiffEq<N>>::Epsilon: Copy,
DefaultAllocator: Allocator<N, <D as DimNameAdd<U1>>::Output, <D as DimNameAdd<U1>>::Output>,
[src]
impl<N, D, C> AbsDiffEq<Transform<N, D, C>> for Transform<N, D, C> where
C: TCategory,
N: RealField,
D: DimNameAdd<U1>,
<N as AbsDiffEq<N>>::Epsilon: Copy,
DefaultAllocator: Allocator<N, <D as DimNameAdd<U1>>::Output, <D as DimNameAdd<U1>>::Output>,
[src]impl<N, D, R> AbsDiffEq<Isometry<N, D, R>> for Isometry<N, D, R> where
N: RealField,
D: DimName,
R: AbstractRotation<N, D> + AbsDiffEq<R, Epsilon = <N as AbsDiffEq<N>>::Epsilon>,
DefaultAllocator: Allocator<N, D, U1>,
<N as AbsDiffEq<N>>::Epsilon: Copy,
[src]
impl<N, D, R> AbsDiffEq<Isometry<N, D, R>> for Isometry<N, D, R> where
N: RealField,
D: DimName,
R: AbstractRotation<N, D> + AbsDiffEq<R, Epsilon = <N as AbsDiffEq<N>>::Epsilon>,
DefaultAllocator: Allocator<N, D, U1>,
<N as AbsDiffEq<N>>::Epsilon: Copy,
[src]impl<N, D, R> AbsDiffEq<Similarity<N, D, R>> for Similarity<N, D, R> where
N: RealField,
D: DimName,
R: AbstractRotation<N, D> + AbsDiffEq<R, Epsilon = <N as AbsDiffEq<N>>::Epsilon>,
DefaultAllocator: Allocator<N, D, U1>,
<N as AbsDiffEq<N>>::Epsilon: Copy,
[src]
impl<N, D, R> AbsDiffEq<Similarity<N, D, R>> for Similarity<N, D, R> where
N: RealField,
D: DimName,
R: AbstractRotation<N, D> + AbsDiffEq<R, Epsilon = <N as AbsDiffEq<N>>::Epsilon>,
DefaultAllocator: Allocator<N, D, U1>,
<N as AbsDiffEq<N>>::Epsilon: Copy,
[src]type Epsilon = <N as AbsDiffEq<N>>::Epsilon
pub fn default_epsilon(
) -> <Similarity<N, D, R> as AbsDiffEq<Similarity<N, D, R>>>::Epsilon
[src]
) -> <Similarity<N, D, R> as AbsDiffEq<Similarity<N, D, R>>>::Epsilon
pub fn abs_diff_eq(
&self,
other: &Similarity<N, D, R>,
epsilon: <Similarity<N, D, R> as AbsDiffEq<Similarity<N, D, R>>>::Epsilon
) -> bool
[src]
&self,
other: &Similarity<N, D, R>,
epsilon: <Similarity<N, D, R> as AbsDiffEq<Similarity<N, D, R>>>::Epsilon
) -> bool
impl<N, R, C, S> AbsDiffEq<Matrix<N, R, C, S>> for Matrix<N, R, C, S> where
C: Dim,
N: Scalar + AbsDiffEq<N>,
R: Dim,
S: Storage<N, R, C>,
<N as AbsDiffEq<N>>::Epsilon: Copy,
[src]
impl<N, R, C, S> AbsDiffEq<Matrix<N, R, C, S>> for Matrix<N, R, C, S> where
C: Dim,
N: Scalar + AbsDiffEq<N>,
R: Dim,
S: Storage<N, R, C>,
<N as AbsDiffEq<N>>::Epsilon: Copy,
[src]impl<N, R, C, S> AbsDiffEq<Unit<Matrix<N, R, C, S>>> for Unit<Matrix<N, R, C, S>> where
C: Dim,
N: Scalar + AbsDiffEq<N>,
R: Dim,
S: Storage<N, R, C>,
<N as AbsDiffEq<N>>::Epsilon: Copy,
[src]
impl<N, R, C, S> AbsDiffEq<Unit<Matrix<N, R, C, S>>> for Unit<Matrix<N, R, C, S>> where
C: Dim,
N: Scalar + AbsDiffEq<N>,
R: Dim,
S: Storage<N, R, C>,
<N as AbsDiffEq<N>>::Epsilon: Copy,
[src]type Epsilon = <N as AbsDiffEq<N>>::Epsilon
pub fn default_epsilon(
) -> <Unit<Matrix<N, R, C, S>> as AbsDiffEq<Unit<Matrix<N, R, C, S>>>>::Epsilon
[src]
) -> <Unit<Matrix<N, R, C, S>> as AbsDiffEq<Unit<Matrix<N, R, C, S>>>>::Epsilon
pub fn abs_diff_eq(
&self,
other: &Unit<Matrix<N, R, C, S>>,
epsilon: <Unit<Matrix<N, R, C, S>> as AbsDiffEq<Unit<Matrix<N, R, C, S>>>>::Epsilon
) -> bool
[src]
&self,
other: &Unit<Matrix<N, R, C, S>>,
epsilon: <Unit<Matrix<N, R, C, S>> as AbsDiffEq<Unit<Matrix<N, R, C, S>>>>::Epsilon
) -> bool