pub enum OpcodeMod {
rb,
rw,
rd,
ro,
}
Expand description
Indicate the size of the reg
used when modifying the lower three bits of
the opcode byte; this corresponds to the +rb
, +rw
, +rd
, and +ro
modifiers in the reference manual.
// The `bswap` instruction extends the opcode byte:
let enc = rex([0x0F, 0xC8]).rd();
assert_eq!(enc.to_string(), "0x0F + 0xC8 +rd");
Variants§
Trait Implementations§
impl Copy for OpcodeMod
impl StructuralPartialEq for OpcodeMod
Auto Trait Implementations§
impl Freeze for OpcodeMod
impl RefUnwindSafe for OpcodeMod
impl Send for OpcodeMod
impl Sync for OpcodeMod
impl Unpin for OpcodeMod
impl UnwindSafe for OpcodeMod
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