Enum rulinalg::ulp::UlpComparisonResult
source · [−]pub enum UlpComparisonResult {
ExactMatch,
Difference(u64),
IncompatibleSigns,
Nan,
}
Expand description
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
sourceimpl Clone for UlpComparisonResult
impl Clone for UlpComparisonResult
sourcefn clone(&self) -> UlpComparisonResult
fn clone(&self) -> UlpComparisonResult
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for UlpComparisonResult
impl Debug for UlpComparisonResult
sourceimpl PartialEq<UlpComparisonResult> for UlpComparisonResult
impl PartialEq<UlpComparisonResult> for UlpComparisonResult
sourcefn eq(&self, other: &UlpComparisonResult) -> bool
fn eq(&self, other: &UlpComparisonResult) -> bool
impl Copy for UlpComparisonResult
impl StructuralPartialEq for UlpComparisonResult
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more