Skip to main content

Mem

Struct Mem 

Source
pub struct Mem(pub BaseMem);

Tuple Fields§

§0: BaseMem

Implementations§

Source§

impl Mem

Source

pub const SIGNATURE_MEM_SHIFT_VALUE_SHIFT: u32 = 14

Source

pub const SIGNATURE_MEM_SHIFT_VALUE_MASK: u32

Source

pub const SIGNATURE_MEM_SHIFT_OP_SHIFT: u32 = 20

Source

pub const SIGNATURE_MEM_SHIFT_OP_MASK: u32

Source

pub const SIGNATURE_MEM_OFFSET_MODE_SHIFT: u32 = 24

Source

pub const SIGNATURE_MEM_OFFSET_MODE_MASK: u32

Source

pub const fn new() -> Self

Source

pub fn from_signature_base_and_index_id_disp( signature: OperandSignature, base_id: u32, index_id: u32, offset: i32, ) -> Self

Source

pub fn from_label_and_disp( base: &Label, off: i32, signature: OperandSignature, ) -> Self

Source

pub fn from_base_and_disp( base: &Reg, off: i32, signature: OperandSignature, ) -> Self

Source

pub fn from_base_and_index( base: &Reg, index: &Reg, signature: OperandSignature, ) -> Self

Source

pub fn from_base_and_index_shift( base: &Reg, index: &Reg, shift: impl Into<Shift>, signature: OperandSignature, ) -> Self

Source

pub fn from_u64(base: u64, signature: OperandSignature) -> Self

Source

pub fn clone_adjusted(&self, off: i64) -> Self

Source

pub fn pre(&self) -> Self

Source

pub fn pre_offset(&self, off: i64) -> Self

Source

pub fn post(&self) -> Self

Source

pub fn post_offset(&self, off: i64) -> Self

Source

pub fn base_reg(&self) -> Reg

Source

pub fn index_reg(&self) -> Reg

Source

pub fn set_index(&mut self, index: Reg, shift: impl Into<Shift>)

Source

pub fn offset_mode(&self) -> OffsetMode

Source

pub fn set_offset_mode(&mut self, mode: OffsetMode)

Source

pub fn reset_offset_mode(&mut self)

Source

pub fn is_fixed_offset(&self) -> bool

Source

pub fn is_pre_or_post(&self) -> bool

Source

pub fn is_pre_index(&self) -> bool

Source

pub fn is_post_index(&self) -> bool

Source

pub fn make_pre_index(&mut self)

Source

pub fn make_post_index(&mut self)

Source

pub fn shift_op(&self) -> ShiftOp

Source

pub fn set_shift_op(&mut self, op: ShiftOp)

Source

pub fn reset_shift_op(&mut self)

Source

pub fn has_shift(&self) -> bool

Source

pub fn shift(&self) -> u32

Source

pub fn set_shift(&mut self, shift: impl Into<Shift>)

Source

pub fn reset_shift(&mut self)

Methods from Deref<Target = BaseMem>§

Source

pub fn reset(&mut self)

Source

pub fn is_reg_home(&self) -> bool

Source

pub fn set_reg_home(&mut self)

Source

pub fn clear_reg_home(&mut self)

Source

pub fn has_base(&self) -> bool

Source

pub fn has_index(&self) -> bool

Source

pub fn has_base_or_index(&self) -> bool

Source

pub fn has_base_and_index(&self) -> bool

Source

pub fn has_base_label(&self) -> bool

Source

pub fn has_base_sym(&self) -> bool

Source

pub fn has_base_reg(&self) -> bool

Source

pub fn has_index_reg(&self) -> bool

Source

pub fn base_type(&self) -> RegType

Source

pub fn index_type(&self) -> RegType

Source

pub fn base_id(&self) -> u32

Source

pub fn index_id(&self) -> u32

Source

pub fn set_base_type(&mut self, base_type: RegType)

Source

pub fn set_index_type(&mut self, index_type: RegType)

Source

pub fn set_base_id(&mut self, id: u32)

Source

pub fn set_index_id(&mut self, id: u32)

Source

pub fn set_base(&mut self, base: &BaseReg)

Source

pub fn set_index(&mut self, index: &BaseReg)

Source

pub fn reset_base(&mut self)

Source

pub fn reset_index(&mut self)

Source

pub fn is_offset_64bit(&self) -> bool

Source

pub fn has_offset(&self) -> bool

Source

pub fn offset(&self) -> i64

Source

pub fn offset_lo32(&self) -> i32

Source

pub fn offset_hi32(&self) -> i32

Source

pub fn set_offset(&mut self, offset: i64)

Source

pub fn set_offset_lo32(&mut self, offset: i32)

Source

pub fn add_offset(&mut self, offset: i64)

Source

pub fn add_offset_lo32(&mut self, offset: i32)

Source

pub fn reset_offset(&mut self)

Source

pub fn reset_offset_lo32(&mut self)

Methods from Deref<Target = Operand>§

Source

pub fn reset(&mut self)

Source

pub fn has_signature(&self, other: OperandSignature) -> bool

Source

pub fn signature(&self) -> OperandSignature

Source

pub fn set_signature(&mut self, sig: OperandSignature)

Source

pub fn set_id(&mut self, id: u32)

Source

pub fn op_type(&self) -> OperandType

Source

pub fn is_none(&self) -> bool

Source

pub fn is_reg(&self) -> bool

Source

pub fn is_reg_list(&self) -> bool

Source

pub fn is_mem(&self) -> bool

Source

pub fn is_imm(&self) -> bool

Source

pub fn is_label(&self) -> bool

Source

pub fn is_sym(&self) -> bool

Source

pub fn is_phys_reg(&self) -> bool

Source

pub fn is_virt_reg(&self) -> bool

Source

pub fn id(&self) -> u32

Source

pub fn is_reg_type_of(&self, typ: RegType) -> bool

Source

pub fn is_reg_group_of(&self, group: RegGroup) -> bool

Source

pub fn is_gp(&self) -> bool

Source

pub fn is_gp32(&self) -> bool

Source

pub fn is_gp64(&self) -> bool

Source

pub fn is_vec(&self) -> bool

Source

pub fn is_vec8(&self) -> bool

Source

pub fn is_vec16(&self) -> bool

Source

pub fn is_vec32(&self) -> bool

Source

pub fn is_vec64(&self) -> bool

Source

pub fn is_vec128(&self) -> bool

Source

pub fn is_vec256(&self) -> bool

Source

pub fn is_vec512(&self) -> bool

Source

pub fn is_mask(&self) -> bool

Source

pub fn is_reg_list_of(&self, typ: RegType) -> bool

Source

pub fn is_reg_or_mem(&self) -> bool

Source

pub fn is_reg_or_reg_list_or_mem(&self) -> bool

Source

pub fn x86_rm_size(&self) -> u32

Source

pub fn as_<T>(&self) -> T
where T: OperandCast,

Trait Implementations§

Source§

impl Clone for Mem

Source§

fn clone(&self) -> Mem

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Deref for Mem

Source§

type Target = BaseMem

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl DerefMut for Mem

Source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
Source§

impl Display for Mem

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Hash for Mem

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl OperandCast for Mem

Source§

impl Ord for Mem

Source§

fn cmp(&self, other: &Mem) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for Mem

Source§

fn eq(&self, other: &Mem) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for Mem

Source§

fn partial_cmp(&self, other: &Mem) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Copy for Mem

Source§

impl Eq for Mem

Source§

impl StructuralPartialEq for Mem

Auto Trait Implementations§

§

impl Freeze for Mem

§

impl RefUnwindSafe for Mem

§

impl Send for Mem

§

impl Sync for Mem

§

impl Unpin for Mem

§

impl UnsafeUnpin for Mem

§

impl UnwindSafe for Mem

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.