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