Enum IntCC
pub enum IntCC {
Equal,
NotEqual,
SignedLessThan,
SignedGreaterThanOrEqual,
SignedGreaterThan,
SignedLessThanOrEqual,
UnsignedLessThan,
UnsignedGreaterThanOrEqual,
UnsignedGreaterThan,
UnsignedLessThanOrEqual,
}
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 <=
.
Implementations§
§impl IntCC
impl IntCC
pub fn without_equal(self) -> IntCC
pub fn without_equal(self) -> IntCC
Get the corresponding IntCC with the equal component removed. For conditions without a zero component, this is a no-op.
pub fn unsigned(self) -> IntCC
pub fn unsigned(self) -> IntCC
Get the corresponding IntCC with the signed component removed. For conditions without a signed component, this is a no-op.
pub 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<'de> Deserialize<'de> for IntCC
impl<'de> Deserialize<'de> for IntCC
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<IntCC, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<IntCC, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Serialize for IntCC
impl Serialize for IntCC
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for IntCC
impl Eq for IntCC
impl StructuralPartialEq for IntCC
Auto Trait Implementations§
impl Freeze for IntCC
impl RefUnwindSafe for IntCC
impl Send for IntCC
impl Sync for IntCC
impl Unpin for IntCC
impl UnwindSafe for IntCC
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.