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
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 Debug for UlpComparisonResult
[src]
impl Copy for UlpComparisonResult
[src]
impl Clone for UlpComparisonResult
[src]
fn clone(&self) -> UlpComparisonResult
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for UlpComparisonResult
[src]
fn eq(&self, __arg_0: &UlpComparisonResult) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &UlpComparisonResult) -> bool
This method tests for !=
.