[][src]Trait un_algebra::numeric::equal::NumEq

pub trait NumEq: PartialEq {
    type Eps;
    fn num_eq(&self, other: &Self, _eps: &Self::Eps) -> bool { ... }
fn num_ne(&self, other: &Self, eps: &Self::Eps) -> bool { ... } }

Numeric equality predicates.

Associated Types

type Eps

Epsilon comparison type.

Loading content...

Provided methods

fn num_eq(&self, other: &Self, _eps: &Self::Eps) -> bool

Are two values numerically equal, within eps?

fn num_ne(&self, other: &Self, eps: &Self::Eps) -> bool

Are two values numerically unequal, within eps?

Loading content...

Implementations on Foreign Types

impl NumEq for f32[src]

type Eps = Self

Epsilon type is the same floating point type.

fn num_eq(&self, other: &Self, eps: &f32) -> bool[src]

Equality within eps error bounds.

fn num_ne(&self, other: &Self, eps: &f32) -> bool[src]

Inequality within eps error bounds.

impl NumEq for f64[src]

type Eps = Self

Epsilon type is the same floating point type.

fn num_eq(&self, other: &Self, eps: &f64) -> bool[src]

Equality within eps error bounds.

fn num_ne(&self, other: &Self, eps: &f64) -> bool[src]

Inequality within eps error bounds.

impl<T: NumEq> NumEq for (T,)[src]

type Eps = T::Eps

Epsilon type is just T's epsilon type.

fn num_eq(&self, other: &Self, eps: &Self::Eps) -> bool[src]

Numeric equality is by matching element.

fn num_ne(&self, other: &Self, eps: &Self::Eps) -> bool[src]

Numeric inequality is by matching element.

impl<T: NumEq> NumEq for (T, T)[src]

type Eps = T::Eps

Epsilon type is just T's epsilon type.

fn num_eq(&self, other: &Self, eps: &Self::Eps) -> bool[src]

Numeric equality is by matching element.

fn num_ne(&self, other: &Self, eps: &Self::Eps) -> bool[src]

Numeric inequality is by matching element.

impl<T: NumEq> NumEq for (T, T, T)[src]

type Eps = T::Eps

Epsilon type is just T's epsilon type.

fn num_eq(&self, other: &Self, eps: &Self::Eps) -> bool[src]

Numeric equality is by matching element.

fn num_ne(&self, other: &Self, eps: &Self::Eps) -> bool[src]

Numeric inequality is by matching element.

impl<T: NumEq> NumEq for (T, T, T, T)[src]

type Eps = T::Eps

Epsilon type is just T's epsilon type.

fn num_eq(&self, other: &Self, eps: &Self::Eps) -> bool[src]

Numeric equality is by matching element.

fn num_ne(&self, other: &Self, eps: &Self::Eps) -> bool[src]

Numeric inequality is by matching element.

impl<T: NumEq + Copy> NumEq for [T; 0][src]

type Eps = T::Eps

Epsilon type is the element epsilon type.

fn num_eq(&self, other: &Self, eps: &Self::Eps) -> bool[src]

Equality is by matching numeric equality.

fn num_ne(&self, other: &Self, eps: &Self::Eps) -> bool[src]

Inequality is by matching numeric inequality.

impl<T: NumEq + Copy> NumEq for [T; 1][src]

type Eps = T::Eps

Epsilon type is the element epsilon type.

fn num_eq(&self, other: &Self, eps: &Self::Eps) -> bool[src]

Equality is by matching numeric equality.

fn num_ne(&self, other: &Self, eps: &Self::Eps) -> bool[src]

Inequality is by matching numeric inequality.

impl<T: NumEq + Copy> NumEq for [T; 2][src]

type Eps = T::Eps

Epsilon type is the element epsilon type.

fn num_eq(&self, other: &Self, eps: &Self::Eps) -> bool[src]

Equality is by matching numeric equality.

fn num_ne(&self, other: &Self, eps: &Self::Eps) -> bool[src]

Inequality is by matching numeric inequality.

impl<T: NumEq + Copy> NumEq for [T; 3][src]

type Eps = T::Eps

Epsilon type is the element epsilon type.

fn num_eq(&self, other: &Self, eps: &Self::Eps) -> bool[src]

Equality is by matching numeric equality.

fn num_ne(&self, other: &Self, eps: &Self::Eps) -> bool[src]

Inequality is by matching numeric inequality.

impl<T: NumEq + Copy> NumEq for [T; 4][src]

type Eps = T::Eps

Epsilon type is the element epsilon type.

fn num_eq(&self, other: &Self, eps: &Self::Eps) -> bool[src]

Equality is by matching numeric equality.

fn num_ne(&self, other: &Self, eps: &Self::Eps) -> bool[src]

Inequality is by matching numeric inequality.

impl<T: NumEq + Copy> NumEq for [T; 5][src]

type Eps = T::Eps

Epsilon type is the element epsilon type.

fn num_eq(&self, other: &Self, eps: &Self::Eps) -> bool[src]

Equality is by matching numeric equality.

fn num_ne(&self, other: &Self, eps: &Self::Eps) -> bool[src]

Inequality is by matching numeric inequality.

impl<T: NumEq + Copy> NumEq for [T; 6][src]

type Eps = T::Eps

Epsilon type is the element epsilon type.

fn num_eq(&self, other: &Self, eps: &Self::Eps) -> bool[src]

Equality is by matching numeric equality.

fn num_ne(&self, other: &Self, eps: &Self::Eps) -> bool[src]

Inequality is by matching numeric inequality.

impl<T: NumEq + Copy> NumEq for [T; 7][src]

type Eps = T::Eps

Epsilon type is the element epsilon type.

fn num_eq(&self, other: &Self, eps: &Self::Eps) -> bool[src]

Equality is by matching numeric equality.

fn num_ne(&self, other: &Self, eps: &Self::Eps) -> bool[src]

Inequality is by matching numeric inequality.

impl<T: NumEq + Copy> NumEq for [T; 8][src]

type Eps = T::Eps

Epsilon type is the element epsilon type.

fn num_eq(&self, other: &Self, eps: &Self::Eps) -> bool[src]

Equality is by matching numeric equality.

fn num_ne(&self, other: &Self, eps: &Self::Eps) -> bool[src]

Inequality is by matching numeric inequality.

impl<T: NumEq + Copy> NumEq for [T; 9][src]

type Eps = T::Eps

Epsilon type is the element epsilon type.

fn num_eq(&self, other: &Self, eps: &Self::Eps) -> bool[src]

Equality is by matching numeric equality.

fn num_ne(&self, other: &Self, eps: &Self::Eps) -> bool[src]

Inequality is by matching numeric inequality.

impl<T: NumEq + Copy> NumEq for [T; 10][src]

type Eps = T::Eps

Epsilon type is the element epsilon type.

fn num_eq(&self, other: &Self, eps: &Self::Eps) -> bool[src]

Equality is by matching numeric equality.

fn num_ne(&self, other: &Self, eps: &Self::Eps) -> bool[src]

Inequality is by matching numeric inequality.

impl<T: NumEq + Copy> NumEq for [T; 11][src]

type Eps = T::Eps

Epsilon type is the element epsilon type.

fn num_eq(&self, other: &Self, eps: &Self::Eps) -> bool[src]

Equality is by matching numeric equality.

fn num_ne(&self, other: &Self, eps: &Self::Eps) -> bool[src]

Inequality is by matching numeric inequality.

impl<T: NumEq + Copy> NumEq for [T; 12][src]

type Eps = T::Eps

Epsilon type is the element epsilon type.

fn num_eq(&self, other: &Self, eps: &Self::Eps) -> bool[src]

Equality is by matching numeric equality.

fn num_ne(&self, other: &Self, eps: &Self::Eps) -> bool[src]

Inequality is by matching numeric inequality.

impl<T: NumEq + Copy> NumEq for [T; 13][src]

type Eps = T::Eps

Epsilon type is the element epsilon type.

fn num_eq(&self, other: &Self, eps: &Self::Eps) -> bool[src]

Equality is by matching numeric equality.

fn num_ne(&self, other: &Self, eps: &Self::Eps) -> bool[src]

Inequality is by matching numeric inequality.

impl<T: NumEq + Copy> NumEq for [T; 14][src]

type Eps = T::Eps

Epsilon type is the element epsilon type.

fn num_eq(&self, other: &Self, eps: &Self::Eps) -> bool[src]

Equality is by matching numeric equality.

fn num_ne(&self, other: &Self, eps: &Self::Eps) -> bool[src]

Inequality is by matching numeric inequality.

impl<T: NumEq + Copy> NumEq for [T; 15][src]

type Eps = T::Eps

Epsilon type is the element epsilon type.

fn num_eq(&self, other: &Self, eps: &Self::Eps) -> bool[src]

Equality is by matching numeric equality.

fn num_ne(&self, other: &Self, eps: &Self::Eps) -> bool[src]

Inequality is by matching numeric inequality.

impl<T: NumEq + Copy> NumEq for [T; 16][src]

type Eps = T::Eps

Epsilon type is the element epsilon type.

fn num_eq(&self, other: &Self, eps: &Self::Eps) -> bool[src]

Equality is by matching numeric equality.

fn num_ne(&self, other: &Self, eps: &Self::Eps) -> bool[src]

Inequality is by matching numeric inequality.

Loading content...

Implementors

Loading content...