#[repr(u32)]pub enum OperandType {
None = 0,
Reg = 1,
Mem = 2,
RegList = 3,
Imm = 4,
Label = 5,
Sym = 6,
}Expand description
Operand type used by Operand
Variants§
None = 0
Not an operand or not initialized.
Reg = 1
Operand is a register
Mem = 2
Operand is a memory
RegList = 3
Operand is a register-list
Imm = 4
Operand is an immediate value
Label = 5
Operand is a label
Sym = 6
Operand is a symbol
Trait Implementations§
Source§impl Clone for OperandType
impl Clone for OperandType
Source§fn clone(&self) -> OperandType
fn clone(&self) -> OperandType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OperandType
Source§impl Debug for OperandType
impl Debug for OperandType
Source§impl Display for OperandType
impl Display for OperandType
impl Eq for OperandType
Source§impl Ord for OperandType
impl Ord for OperandType
Source§fn cmp(&self, other: &OperandType) -> Ordering
fn cmp(&self, other: &OperandType) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for OperandType
impl PartialEq for OperandType
Source§impl PartialOrd for OperandType
impl PartialOrd for OperandType
impl StructuralPartialEq for OperandType
Auto Trait Implementations§
impl Freeze for OperandType
impl RefUnwindSafe for OperandType
impl Send for OperandType
impl Sync for OperandType
impl Unpin for OperandType
impl UnsafeUnpin for OperandType
impl UnwindSafe for OperandType
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