Enum matrixcompare::ulp::UlpComparisonResult[][src]

pub enum UlpComparisonResult {
    ExactMatch,
    Difference(u64),
    IncompatibleSigns,
    Nan,
}

Represents the result of an ULP-based comparison between two floating point numbers.

Variants

ExactMatch

Signifies an exact match between two floating point numbers.

Difference(u64)

The difference in ULP between two floating point numbers.

IncompatibleSigns

The two floating point numbers have different signs, and cannot be compared in a meaningful way.

Nan

One or both of the two floating point numbers is a NaN, in which case the ULP comparison is not meaningful.

Trait Implementations

impl Clone for UlpComparisonResult[src]

impl Copy for UlpComparisonResult[src]

impl Debug for UlpComparisonResult[src]

impl PartialEq<UlpComparisonResult> for UlpComparisonResult[src]

impl StructuralPartialEq for UlpComparisonResult[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.