pub enum IntCC {
Equal,
NotEqual,
SignedLessThan,
SignedGreaterThanOrEqual,
SignedGreaterThan,
SignedLessThanOrEqual,
UnsignedLessThan,
UnsignedGreaterThanOrEqual,
UnsignedGreaterThan,
UnsignedLessThanOrEqual,
Overflow,
NotOverflow,
}
Expand description
Condition code for comparing integers.
This condition code is used by the icmp
instruction to compare integer values. There are
separate codes for comparing the integers as signed or unsigned numbers where it makes a
difference.
Variants
Equal
==
.
NotEqual
!=
.
SignedLessThan
Signed <
.
SignedGreaterThanOrEqual
Signed >=
.
SignedGreaterThan
Signed >
.
SignedLessThanOrEqual
Signed <=
.
UnsignedLessThan
Unsigned <
.
UnsignedGreaterThanOrEqual
Unsigned >=
.
UnsignedGreaterThan
Unsigned >
.
UnsignedLessThanOrEqual
Unsigned <=
.
Overflow
Signed Overflow.
NotOverflow
Signed No Overflow.
Implementations
sourceimpl IntCC
impl IntCC
sourcepub fn without_equal(self) -> Self
pub fn without_equal(self) -> Self
Get the corresponding IntCC with the equal component removed. For conditions without a zero component, this is a no-op.
sourcepub fn unsigned(self) -> Self
pub fn unsigned(self) -> Self
Get the corresponding IntCC with the signed component removed. For conditions without a signed component, this is a no-op.
sourcepub fn to_static_str(self) -> &'static str
pub fn to_static_str(self) -> &'static str
Get the corresponding string condition code for the IntCC object.
Trait Implementations
impl Copy for IntCC
impl Eq for IntCC
impl StructuralEq for IntCC
impl StructuralPartialEq for IntCC
Auto Trait Implementations
impl RefUnwindSafe for IntCC
impl Send for IntCC
impl Sync for IntCC
impl Unpin for IntCC
impl UnwindSafe for IntCC
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.