Struct rydis::MemOperand
source · pub struct MemOperand {
pub base: Option<Register>,
pub index: Option<MemOperandIndex>,
pub displacement: i64,
pub size: u8,
pub segment_register_override: Option<SegmentRegister>,
}Expand description
a memory operand, for example [rbp+2*rsi+0x35].
Fields§
§base: Option<Register>the base register.
index: Option<MemOperandIndex>the index.
displacement: i64the displacement value.
size: u8size of this operand in bytes.
segment_register_override: Option<SegmentRegister>the segment register override.
Trait Implementations§
source§impl Clone for MemOperand
impl Clone for MemOperand
source§fn clone(&self) -> MemOperand
fn clone(&self) -> MemOperand
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for MemOperand
impl Debug for MemOperand
source§impl Hash for MemOperand
impl Hash for MemOperand
source§impl PartialEq for MemOperand
impl PartialEq for MemOperand
source§fn eq(&self, other: &MemOperand) -> bool
fn eq(&self, other: &MemOperand) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for MemOperand
impl StructuralEq for MemOperand
impl StructuralPartialEq for MemOperand
Auto Trait Implementations§
impl RefUnwindSafe for MemOperand
impl Send for MemOperand
impl Sync for MemOperand
impl Unpin for MemOperand
impl UnwindSafe for MemOperand
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