[][src]Enum rulinalg::ulp::UlpComparisonResult

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

impl RefUnwindSafe for UlpComparisonResult

impl Send for UlpComparisonResult

impl Sync for UlpComparisonResult

impl Unpin for UlpComparisonResult

impl UnwindSafe for UlpComparisonResult

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.