pub enum IntPred {
Eq,
Ne,
Slt,
Sle,
Sgt,
Sge,
Ult,
Ule,
Ugt,
Uge,
}Expand description
The ten integer comparisons.
Signedness is on the predicate rather than on the type, for the same reason it is on
sdiv and udiv: the type space is halved and the operation says what it means.
Variants§
Eq
Equal.
Ne
Not equal.
Slt
Signed less than.
Sle
Signed less than or equal.
Sgt
Signed greater than.
Sge
Signed greater than or equal.
Ult
Unsigned less than.
Ule
Unsigned less than or equal.
Ugt
Unsigned greater than.
Uge
Unsigned greater than or equal.
Implementations§
Trait Implementations§
impl Copy for IntPred
impl Eq for IntPred
Source§impl Ord for IntPred
impl Ord for IntPred
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for IntPred
impl PartialOrd for IntPred
impl StructuralPartialEq for IntPred
Auto Trait Implementations§
impl Freeze for IntPred
impl RefUnwindSafe for IntPred
impl Send for IntPred
impl Sync for IntPred
impl Unpin for IntPred
impl UnsafeUnpin for IntPred
impl UnwindSafe for IntPred
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more