Mem

Struct Mem 

Source
pub struct Mem(pub BaseMem);

Tuple Fields§

§0: BaseMem

Implementations§

Source§

impl Mem

Source

pub const SIGNATURE_MEM_ADDR_TYPE_SHIFT: u32 = 14u32

Source

pub const SIGNATURE_MEM_ADDR_TYPE_MASK: u32 = 49_152u32

Source

pub const SIGNATURE_MEM_SHIFT_VALUE_SHIFT: u32 = 16u32

Source

pub const SIGNATURE_MEM_SHIFT_VALUE_MASK: u32 = 196_608u32

Source

pub const SIGNATURE_MEM_SEGMENT_SHIFT: u32 = 18u32

Source

pub const SIGNATURE_MEM_SEGMENT_MASK: u32 = 1_835_008u32

Source

pub const SIGNATURE_MEM_BROADCAST_SHIFT: u32 = 21u32

Source

pub const SIGNATURE_MEM_BROADCAST_MASK: u32 = 14_680_064u32

Source

pub const fn new() -> Self

Source

pub fn base_reg(&self) -> Reg

Source

pub fn index_reg(&self) -> Reg

Source

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

Source

pub fn has_size(&self) -> bool

Source

pub fn has_size_of(&self, s: u32) -> bool

Source

pub fn size(&self) -> u32

Source

pub fn set_size(&mut self, size: u32)

Source

pub fn addr_type(&self) -> AddrType

Source

pub fn set_addr_type(&mut self, addr_type: AddrType)

Source

pub fn reset_addr_type(&mut self)

Source

pub fn is_abs(&self) -> bool

Source

pub fn set_abs(&mut self)

Source

pub fn is_rel(&self) -> bool

Source

pub fn set_rel(&mut self)

Source

pub fn has_segment(&self) -> bool

Source

pub fn segment(&self) -> SReg

Source

pub fn segment_id(&self) -> u32

Source

pub fn set_segment(&mut self, seg: SReg)

Source

pub fn set_segment_id(&mut self, r_id: u32)

Source

pub fn reset_segment(&mut self)

Source

pub fn has_shift(&self) -> bool

Source

pub fn shift(&self) -> u32

Source

pub fn set_shift(&mut self, shift: u32)

Source

pub fn reset_shift(&mut self)

Source

pub fn has_broadcast(&self) -> bool

Source

pub fn get_broadcast(&self) -> Broadcast

Source

pub fn set_broadcast(&mut self, b: Broadcast)

Source

pub fn reset_broadcast(&mut self)

Source

pub fn _1to1(&self) -> Self

Source

pub fn _1to2(&self) -> Self

Source

pub fn _1to4(&self) -> Self

Source

pub fn _1to8(&self) -> Self

Source

pub fn _1to16(&self) -> Self

Source

pub fn _1to32(&self) -> Self

Source

pub fn _1to64(&self) -> Self

Source

pub fn base_and_index_types(&self) -> u32

Source

pub fn clone_broadcasted(&self, bcst: Broadcast) -> 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_sym_and_index_shift_disp( base: &Sym, index: &BaseReg, shift: u32, off: i32, size: u32, signature: OperandSignature, ) -> Self

Source

pub fn from_label_and_index_shift_disp( base: &Label, index: &BaseReg, shift: u32, off: i32, size: u32, signature: OperandSignature, ) -> Self

Source

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

Source

pub fn from_sym_and_disp( base: &Sym, off: i32, size: u32, signature: OperandSignature, ) -> Self

Source

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

Source

pub fn from_base_and_index_shift_disp( base: &BaseReg, index: &BaseReg, shift: u32, off: i32, size: u32, signature: OperandSignature, ) -> Self

Source

pub fn from_u64_and_index_shift_disp( base: u64, index: &BaseReg, shift: u32, size: u32, signature: OperandSignature, ) -> Self

Source

pub fn from_u64(base: u64, size: u32, signature: OperandSignature) -> 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 Add<Mem> for Gpq

Source§

type Output = Mem

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Mem) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<i32> for Mem

Source§

type Output = Mem

The resulting type after applying the + operator.
Source§

fn add(self, rhs: i32) -> Self::Output

Performs the + operation. Read more
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 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<T: Deref<Target = Gp>> Mul<T> for Mem

Source§

type Output = Mem

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: T) -> Self::Output

Performs the * operation. 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 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, 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.