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§
source§impl Clone for FloatPredicate
impl Clone for FloatPredicate
source§fn clone(&self) -> FloatPredicate
fn clone(&self) -> FloatPredicate
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for FloatPredicate
impl Debug for FloatPredicate
source§impl From<LLVMRealPredicate> for FloatPredicate
impl From<LLVMRealPredicate> for FloatPredicate
source§fn from(src: LLVMRealPredicate) -> Self
fn from(src: LLVMRealPredicate) -> Self
Converts to this type from the input type.
source§impl Hash for FloatPredicate
impl Hash for FloatPredicate
source§impl Into<LLVMRealPredicate> for FloatPredicate
impl Into<LLVMRealPredicate> for FloatPredicate
source§fn into(self) -> LLVMRealPredicate
fn into(self) -> LLVMRealPredicate
Converts this type into the (usually inferred) input type.
source§impl Ord for FloatPredicate
impl Ord for FloatPredicate
source§fn cmp(&self, other: &FloatPredicate) -> Ordering
fn cmp(&self, other: &FloatPredicate) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<FloatPredicate> for FloatPredicate
impl PartialEq<FloatPredicate> for FloatPredicate
source§fn 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 ==.source§impl PartialOrd<FloatPredicate> for FloatPredicate
impl PartialOrd<FloatPredicate> for FloatPredicate
source§fn partial_cmp(&self, other: &FloatPredicate) -> Option<Ordering>
fn partial_cmp(&self, other: &FloatPredicate) -> Option<Ordering>
1.0.0 · source§fn 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