pub enum OperandEncoding {
Show 15 variants
None,
I8,
I16,
I32,
I64,
Bytes(usize),
Data1,
Data2,
Data4,
Jump8,
Jump32,
U8,
U16,
U32,
Syscall,
}Expand description
Metadata describing how to decode operands for a specific opcode.
Variants§
None
No operand bytes.
I8
Signed 8-bit integer.
I16
Signed 16-bit integer.
I32
Signed 32-bit integer.
I64
Signed 64-bit integer.
Bytes(usize)
Fixed-length byte payload.
Data1
One-byte length prefix followed by payload bytes.
Data2
Two-byte length prefix followed by payload bytes.
Data4
Four-byte length prefix followed by payload bytes.
Jump8
Signed 8-bit relative jump.
Jump32
Signed 32-bit relative jump.
U8
Unsigned 8-bit integer.
U16
Unsigned 16-bit integer.
U32
Unsigned 32-bit integer.
Syscall
Syscall identifier.
Trait Implementations§
Source§impl Clone for OperandEncoding
impl Clone for OperandEncoding
Source§fn clone(&self) -> OperandEncoding
fn clone(&self) -> OperandEncoding
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OperandEncoding
impl Debug for OperandEncoding
Source§impl PartialEq for OperandEncoding
impl PartialEq for OperandEncoding
impl Copy for OperandEncoding
impl Eq for OperandEncoding
impl StructuralPartialEq for OperandEncoding
Auto Trait Implementations§
impl Freeze for OperandEncoding
impl RefUnwindSafe for OperandEncoding
impl Send for OperandEncoding
impl Sync for OperandEncoding
impl Unpin for OperandEncoding
impl UnwindSafe for OperandEncoding
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.