pub enum Operand {
Imm8(u8),
Imm16(u16),
Reg8(Reg8),
Reg16(Reg16),
DerefReg(Reg16),
}
Variants§
Implementations§
Source§impl Operand
impl Operand
pub fn imm8_from_bytes(bytes: &[u8]) -> Result<Operand, ParserError>
pub fn imm16_from_bytes(bytes: &[u8]) -> Result<Operand, ParserError>
pub fn is_immediate(&self) -> bool
pub fn is_register(&self) -> bool
Trait Implementations§
impl Copy for Operand
impl StructuralPartialEq for Operand
Auto Trait Implementations§
impl Freeze for Operand
impl RefUnwindSafe for Operand
impl Send for Operand
impl Sync for Operand
impl Unpin for Operand
impl UnwindSafe for Operand
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