pub struct Mem32 { /* private fields */ }
Expand description
A memory operand with dword
size (32 bit).
Implementations§
source§impl Mem32
impl Mem32
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 Mem32
impl RefUnwindSafe for Mem32
impl Send for Mem32
impl Sync for Mem32
impl Unpin for Mem32
impl UnwindSafe for Mem32
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