pub enum FloatPredicate {
Show 16 variants
OEQ,
OGE,
OGT,
OLE,
OLT,
ONE,
ORD,
PredicateFalse,
PredicateTrue,
UEQ,
UGE,
UGT,
ULE,
ULT,
UNE,
UNO,
}Expand description
Defines how to compare a left and right FloatValue.
Variants
OEQ
Returns true if left == right and neither are NaN
OGE
Returns true if left >= right and neither are NaN
OGT
Returns true if left > right and neither are NaN
OLE
Returns true if left <= right and neither are NaN
OLT
Returns true if left < right and neither are NaN
ONE
Returns true if left != right and neither are NaN
ORD
Returns true if neither value is NaN
PredicateFalse
Always returns false
PredicateTrue
Always returns true
UEQ
Returns true if left == right or either is NaN
UGE
Returns true if left >= right or either is NaN
UGT
Returns true if left > right or either is NaN
ULE
Returns true if left <= right or either is NaN
ULT
Returns true if left < right or either is NaN
UNE
Returns true if left != right or either is NaN
UNO
Returns true if either value is NaN
Trait Implementations
sourceimpl Clone for FloatPredicate
impl Clone for FloatPredicate
sourcefn clone(&self) -> FloatPredicate
fn clone(&self) -> FloatPredicate
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for FloatPredicate
impl Debug for FloatPredicate
sourceimpl From<LLVMRealPredicate> for FloatPredicate
impl From<LLVMRealPredicate> for FloatPredicate
sourcefn from(src: LLVMRealPredicate) -> Self
fn from(src: LLVMRealPredicate) -> Self
Converts to this type from the input type.
sourceimpl Hash for FloatPredicate
impl Hash for FloatPredicate
sourceimpl Into<LLVMRealPredicate> for FloatPredicate
impl Into<LLVMRealPredicate> for FloatPredicate
sourcefn into(self) -> LLVMRealPredicate
fn into(self) -> LLVMRealPredicate
Converts this type into the (usually inferred) input type.
sourceimpl Ord for FloatPredicate
impl Ord for FloatPredicate
sourcefn cmp(&self, other: &FloatPredicate) -> Ordering
fn cmp(&self, other: &FloatPredicate) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<FloatPredicate> for FloatPredicate
impl PartialEq<FloatPredicate> for FloatPredicate
sourcefn eq(&self, other: &FloatPredicate) -> bool
fn eq(&self, other: &FloatPredicate) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourceimpl PartialOrd<FloatPredicate> for FloatPredicate
impl PartialOrd<FloatPredicate> for FloatPredicate
sourcefn partial_cmp(&self, other: &FloatPredicate) -> Option<Ordering>
fn partial_cmp(&self, other: &FloatPredicate) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl Copy for FloatPredicate
impl Eq for FloatPredicate
impl StructuralEq for FloatPredicate
impl StructuralPartialEq for FloatPredicate
Auto Trait Implementations
impl RefUnwindSafe for FloatPredicate
impl Send for FloatPredicate
impl Sync for FloatPredicate
impl Unpin for FloatPredicate
impl UnwindSafe for FloatPredicate
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