pub enum ImmUnit {
None,
Value,
Trytes,
Trits,
Instructions,
Csr,
}Expand description
What an instruction’s immediate counts.
Recorded in the table so that whether an offset counts instructions or trytes is answered by the data rather than by a comment.
Variants§
None
No immediate; the field must be zero.
Value
A plain operand value.
Trytes
Addressable units - a displacement from a base register.
Trits
A shift distance, i.e. an exponent of three.
Instructions
Whole instructions. The interpreter multiplies by 3 to reach trytes, which keeps every branch target word-aligned by construction.
Csr
A control and status register number.
Trait Implementations§
impl Copy for ImmUnit
impl Eq for ImmUnit
impl StructuralPartialEq for ImmUnit
Auto Trait Implementations§
impl Freeze for ImmUnit
impl RefUnwindSafe for ImmUnit
impl Send for ImmUnit
impl Sync for ImmUnit
impl Unpin for ImmUnit
impl UnsafeUnpin for ImmUnit
impl UnwindSafe for ImmUnit
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