pub struct Mem8 { /* private fields */ }
Expand description
A memory operand with byte
size (8 bit).
Implementations§
source§impl Mem8
impl Mem8
sourcepub fn indirect(base: Reg64) -> Self
pub fn indirect(base: Reg64) -> Self
Create a memory operand with indirect
addressing mode.
For example mov [rax], rcx
.
sourcepub fn indirect_disp(base: Reg64, disp: i32) -> Self
pub fn indirect_disp(base: Reg64, disp: i32) -> Self
Create a memory operand with indirect + displacement
addressing mode.
For example mov [rax + 0x10], rcx
.
sourcepub fn indirect_base_index(base: Reg64, index: Reg64) -> Self
pub fn indirect_base_index(base: Reg64, index: Reg64) -> Self
Create a memory operand with base + index
addressing mode.
For example mov [rax + rcx], rdx
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Mem8
impl RefUnwindSafe for Mem8
impl Send for Mem8
impl Sync for Mem8
impl Unpin for Mem8
impl UnwindSafe for Mem8
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