[][src]Trait float_cmp::ApproxOrdUlps

pub trait ApproxOrdUlps: ApproxEqUlps {
    fn approx_cmp_ulps(
        &self,
        other: &Self,
        ulps: <Self::Flt as Ulps>::U
    ) -> Ordering; fn approx_lt_ulps(&self, other: &Self, ulps: <Self::Flt as Ulps>::U) -> bool { ... }
fn approx_le_ulps(&self, other: &Self, ulps: <Self::Flt as Ulps>::U) -> bool { ... }
fn approx_gt_ulps(&self, other: &Self, ulps: <Self::Flt as Ulps>::U) -> bool { ... }
fn approx_ge_ulps(&self, other: &Self, ulps: <Self::Flt as Ulps>::U) -> bool { ... } }
Deprecated since 0.5.0:

types that can implement this can implement PartialOrd

ApproxOrdUlps is for sorting floating point values where approximate equality is considered equal. This is only really useful for types which cannot implement Ord

This is deprecated. If you are using this type, please contact the author and explain how it is useful.

Required methods

fn approx_cmp_ulps(
    &self,
    other: &Self,
    ulps: <Self::Flt as Ulps>::U
) -> Ordering

Deprecated since 0.5.0:

types that can implement this can implement PartialOrd

This method returns an ordering between self and other values if one exists, where Equal is returned if they are approximately equal within ulps floating point representations. See module documentation for an understanding of ulps

Loading content...

Provided methods

fn approx_lt_ulps(&self, other: &Self, ulps: <Self::Flt as Ulps>::U) -> bool

Deprecated since 0.5.0:

types that can implement this can implement PartialOrd

This method tests less than (for self < other), where values within ulps of each other are not less than. See module documentation for an understanding of ulps.

fn approx_le_ulps(&self, other: &Self, ulps: <Self::Flt as Ulps>::U) -> bool

Deprecated since 0.5.0:

types that can implement this can implement PartialOrd

This method tests less than or equal to (for self <= other) where values within ulps are equal. See module documentation for an understanding of ulps.

fn approx_gt_ulps(&self, other: &Self, ulps: <Self::Flt as Ulps>::U) -> bool

Deprecated since 0.5.0:

types that can implement this can implement PartialOrd

This method tests greater than (for self > other) where values within ulps are not greater than. See module documentation for an understanding of ulps

fn approx_ge_ulps(&self, other: &Self, ulps: <Self::Flt as Ulps>::U) -> bool

Deprecated since 0.5.0:

types that can implement this can implement PartialOrd

This method tests greater than or equal to (for self > other) where values within ulps are equal. See module documentation for an understanding of ulps.

Loading content...

Implementations on Foreign Types

impl ApproxOrdUlps for f32[src]

fn approx_lt_ulps(&self, other: &Self, ulps: <Self::Flt as Ulps>::U) -> bool[src]

Deprecated since 0.5.0:

types that can implement this can implement PartialOrd

fn approx_le_ulps(&self, other: &Self, ulps: <Self::Flt as Ulps>::U) -> bool[src]

Deprecated since 0.5.0:

types that can implement this can implement PartialOrd

fn approx_gt_ulps(&self, other: &Self, ulps: <Self::Flt as Ulps>::U) -> bool[src]

Deprecated since 0.5.0:

types that can implement this can implement PartialOrd

fn approx_ge_ulps(&self, other: &Self, ulps: <Self::Flt as Ulps>::U) -> bool[src]

Deprecated since 0.5.0:

types that can implement this can implement PartialOrd

impl ApproxOrdUlps for f64[src]

fn approx_lt_ulps(&self, other: &Self, ulps: <Self::Flt as Ulps>::U) -> bool[src]

Deprecated since 0.5.0:

types that can implement this can implement PartialOrd

fn approx_le_ulps(&self, other: &Self, ulps: <Self::Flt as Ulps>::U) -> bool[src]

Deprecated since 0.5.0:

types that can implement this can implement PartialOrd

fn approx_gt_ulps(&self, other: &Self, ulps: <Self::Flt as Ulps>::U) -> bool[src]

Deprecated since 0.5.0:

types that can implement this can implement PartialOrd

fn approx_ge_ulps(&self, other: &Self, ulps: <Self::Flt as Ulps>::U) -> bool[src]

Deprecated since 0.5.0:

types that can implement this can implement PartialOrd

Loading content...

Implementors

Loading content...