#[repr(u32)]
pub enum Reason {
Special,
Always,
IfFalse,
IfTrue,
}
Expand description
Reason for jumping (bits 4..6)
For conditional jumps, bits 8..16 hold a conditional operand which will be
either a register or a global key depending on ConditionType
.
For conditional and unconditional jumps, bits 16..32 hold an
InstructionPointer
to jump to.
Variants
Special
Always
Unconditional jump (no conditional operand)
IfFalse
Jump if conditional operand (bits 8..16) is false
IfTrue
Jump if conditional operand (bits 8..16) is true
Implementations
Trait Implementations
sourceimpl From<Instruction> for Reason
impl From<Instruction> for Reason
sourcefn from(instruction: Instruction) -> Self
fn from(instruction: Instruction) -> Self
Converts to this type from the input type.
sourceimpl From<Reason> for Instruction
impl From<Reason> for Instruction
sourcefn from(reason: Reason) -> Instruction
fn from(reason: Reason) -> Instruction
Converts to this type from the input type.
impl Copy for Reason
Auto Trait Implementations
impl RefUnwindSafe for Reason
impl Send for Reason
impl Sync for Reason
impl Unpin for Reason
impl UnwindSafe for Reason
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<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more