Enum cranelift_codegen::ir::condcodes::IntCC [−][src]
pub enum IntCC { Equal, NotEqual, SignedLessThan, SignedGreaterThanOrEqual, SignedGreaterThan, SignedLessThanOrEqual, UnsignedLessThan, UnsignedGreaterThanOrEqual, UnsignedGreaterThan, UnsignedLessThanOrEqual, }
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 <=
.
Trait Implementations
impl Clone for IntCC
[src]
impl Clone for IntCC
fn clone(&self) -> IntCC
[src]
fn clone(&self) -> IntCC
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Copy for IntCC
[src]
impl Copy for IntCC
impl PartialEq for IntCC
[src]
impl PartialEq for IntCC
fn eq(&self, other: &IntCC) -> bool
[src]
fn eq(&self, other: &IntCC) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl Eq for IntCC
[src]
impl Eq for IntCC
impl Debug for IntCC
[src]
impl Debug for IntCC
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Hash for IntCC
[src]
impl Hash for IntCC
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl CondCode for IntCC
[src]
impl CondCode for IntCC
fn inverse(self) -> Self
[src]
fn inverse(self) -> Self
Get the inverse condition code of self
. Read more
fn reverse(self) -> Self
[src]
fn reverse(self) -> Self
Get the reversed condition code for self
. Read more
impl Display for IntCC
[src]
impl Display for IntCC
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl FromStr for IntCC
[src]
impl FromStr for IntCC