Enum rulinalg::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

Signifies an exact match between two floating point numbers.

The difference in ULP between two floating point numbers.

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

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

Trait Implementations

impl Debug for UlpComparisonResult
[src]

Formats the value using the given formatter.

impl Copy for UlpComparisonResult
[src]

impl Clone for UlpComparisonResult
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for UlpComparisonResult
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.