pub enum Condition {
Show 15 variants
Equal,
NotEqual,
UnsignedGTE,
UnsignedLT,
Negative,
Positive,
Overflow,
NoOverflow,
UnsignedGT,
UnsignedLTE,
SignedGTE,
SignedLT,
SignedGT,
SignedLTE,
Always,
}
Expand description
Condition codes for controlling execution
Variants, values and conditions are as follows:
Variant | Value | Conditions |
---|---|---|
Equal | 0x0 | Z == true |
NotEqual | 0x1 | Z == false |
UnsignedGTE | 0x2 | C == true |
UnsignedLT | 0x3 | C == false |
Negative | 0x4 | N == true |
Positive | 0x5 | N == false |
Overflow | 0x6 | V == true |
NoOverflow | 0x7 | V == false |
UnsignedGT | 0x8 | C == true && Z == false |
UnsignedLTE | 0x9 | C == false && Z == true |
SignedGTE | 0xa | N == V |
SignedLT | 0xb | N != V |
SignedGT | 0xc | Z == false && N == V |
SignedLTE | 0xd | `Z == true |
Always | 0xe | - |
Variants§
Equal
Equal
NotEqual
Not equal
UnsignedGTE
Greater than or equal (unsigned)
UnsignedLT
Less than (unsigned)
Negative
Negative
Positive
Positive or zero
Overflow
Overflow
NoOverflow
No overflow
UnsignedGT
Greater than (unsigned)
UnsignedLTE
Less than or equal (unsigned)
SignedGTE
Greater than or equal (signed)
SignedLT
Less than (signed)
SignedGT
Greater than (signed)
SignedLTE
Less than or equal (signed)
Always
Always
Trait Implementations§
impl Copy for Condition
impl StructuralPartialEq for Condition
Auto Trait Implementations§
impl Freeze for Condition
impl RefUnwindSafe for Condition
impl Send for Condition
impl Sync for Condition
impl Unpin for Condition
impl UnwindSafe for Condition
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