pub enum ModRmKind {
Digit(u8),
Reg,
}
Variants§
Digit(u8)
Models /digit
.
From the reference manual: “a digit between 0 and 7 indicates that the ModR/M byte of the instruction uses only the r/m (register or memory) operand. The reg field contains the digit that provides an extension to the instruction’s opcode.”
Reg
Models /r
.
From the reference manual: “indicates that the ModR/M byte of the instruction contains a register operand and an r/m operand.”
Implementations§
Trait Implementations§
impl Copy for ModRmKind
impl StructuralPartialEq for ModRmKind
Auto Trait Implementations§
impl Freeze for ModRmKind
impl RefUnwindSafe for ModRmKind
impl Send for ModRmKind
impl Sync for ModRmKind
impl Unpin for ModRmKind
impl UnwindSafe for ModRmKind
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