pub struct Mem(pub BaseMem);Tuple Fields§
§0: BaseMemImplementations§
Source§impl Mem
impl Mem
pub const SIGNATURE_MEM_SHIFT_VALUE_SHIFT: u32 = 14
pub const SIGNATURE_MEM_SHIFT_VALUE_MASK: u32
pub const SIGNATURE_MEM_SHIFT_OP_SHIFT: u32 = 20
pub const SIGNATURE_MEM_SHIFT_OP_MASK: u32
pub const SIGNATURE_MEM_OFFSET_MODE_SHIFT: u32 = 24
pub const SIGNATURE_MEM_OFFSET_MODE_MASK: u32
pub const fn new() -> Self
pub fn from_signature_base_and_index_id_disp( signature: OperandSignature, base_id: u32, index_id: u32, offset: i32, ) -> Self
pub fn from_label_and_disp( base: &Label, off: i32, signature: OperandSignature, ) -> Self
pub fn from_base_and_disp( base: &Reg, off: i32, signature: OperandSignature, ) -> Self
pub fn from_base_and_index( base: &Reg, index: &Reg, signature: OperandSignature, ) -> Self
pub fn from_base_and_index_shift( base: &Reg, index: &Reg, shift: impl Into<Shift>, signature: OperandSignature, ) -> Self
pub fn from_u64(base: u64, signature: OperandSignature) -> Self
pub fn clone_adjusted(&self, off: i64) -> Self
pub fn pre(&self) -> Self
pub fn pre_offset(&self, off: i64) -> Self
pub fn post(&self) -> Self
pub fn post_offset(&self, off: i64) -> Self
pub fn base_reg(&self) -> Reg
pub fn index_reg(&self) -> Reg
pub fn set_index(&mut self, index: Reg, shift: impl Into<Shift>)
pub fn offset_mode(&self) -> OffsetMode
pub fn set_offset_mode(&mut self, mode: OffsetMode)
pub fn reset_offset_mode(&mut self)
pub fn is_fixed_offset(&self) -> bool
pub fn is_pre_or_post(&self) -> bool
pub fn is_pre_index(&self) -> bool
pub fn is_post_index(&self) -> bool
pub fn make_pre_index(&mut self)
pub fn make_post_index(&mut self)
pub fn shift_op(&self) -> ShiftOp
pub fn set_shift_op(&mut self, op: ShiftOp)
pub fn reset_shift_op(&mut self)
pub fn has_shift(&self) -> bool
pub fn shift(&self) -> u32
pub fn set_shift(&mut self, shift: impl Into<Shift>)
pub fn reset_shift(&mut self)
Methods from Deref<Target = BaseMem>§
pub fn reset(&mut self)
pub fn is_reg_home(&self) -> bool
pub fn set_reg_home(&mut self)
pub fn clear_reg_home(&mut self)
pub fn has_base(&self) -> bool
pub fn has_index(&self) -> bool
pub fn has_base_or_index(&self) -> bool
pub fn has_base_and_index(&self) -> bool
pub fn has_base_label(&self) -> bool
pub fn has_base_sym(&self) -> bool
pub fn has_base_reg(&self) -> bool
pub fn has_index_reg(&self) -> bool
pub fn base_type(&self) -> RegType
pub fn index_type(&self) -> RegType
pub fn base_id(&self) -> u32
pub fn index_id(&self) -> u32
pub fn set_base_type(&mut self, base_type: RegType)
pub fn set_index_type(&mut self, index_type: RegType)
pub fn set_base_id(&mut self, id: u32)
pub fn set_index_id(&mut self, id: u32)
pub fn set_base(&mut self, base: &BaseReg)
pub fn set_index(&mut self, index: &BaseReg)
pub fn reset_base(&mut self)
pub fn reset_index(&mut self)
pub fn is_offset_64bit(&self) -> bool
pub fn has_offset(&self) -> bool
pub fn offset(&self) -> i64
pub fn offset_lo32(&self) -> i32
pub fn offset_hi32(&self) -> i32
pub fn set_offset(&mut self, offset: i64)
pub fn set_offset_lo32(&mut self, offset: i32)
pub fn add_offset(&mut self, offset: i64)
pub fn add_offset_lo32(&mut self, offset: i32)
pub fn reset_offset(&mut self)
pub fn reset_offset_lo32(&mut self)
Methods from Deref<Target = Operand>§
pub fn reset(&mut self)
pub fn has_signature(&self, other: OperandSignature) -> bool
pub fn signature(&self) -> OperandSignature
pub fn set_signature(&mut self, sig: OperandSignature)
pub fn set_id(&mut self, id: u32)
pub fn op_type(&self) -> OperandType
pub fn is_none(&self) -> bool
pub fn is_reg(&self) -> bool
pub fn is_reg_list(&self) -> bool
pub fn is_mem(&self) -> bool
pub fn is_imm(&self) -> bool
pub fn is_label(&self) -> bool
pub fn is_sym(&self) -> bool
pub fn is_phys_reg(&self) -> bool
pub fn is_virt_reg(&self) -> bool
pub fn id(&self) -> u32
pub fn is_reg_type_of(&self, typ: RegType) -> bool
pub fn is_reg_group_of(&self, group: RegGroup) -> bool
pub fn is_gp(&self) -> bool
pub fn is_gp32(&self) -> bool
pub fn is_gp64(&self) -> bool
pub fn is_vec(&self) -> bool
pub fn is_vec8(&self) -> bool
pub fn is_vec16(&self) -> bool
pub fn is_vec32(&self) -> bool
pub fn is_vec64(&self) -> bool
pub fn is_vec128(&self) -> bool
pub fn is_vec256(&self) -> bool
pub fn is_vec512(&self) -> bool
pub fn is_mask(&self) -> bool
pub fn is_reg_list_of(&self, typ: RegType) -> bool
pub fn is_reg_or_mem(&self) -> bool
pub fn is_reg_or_reg_list_or_mem(&self) -> bool
pub fn x86_rm_size(&self) -> u32
pub fn as_<T>(&self) -> Twhere
T: OperandCast,
Trait Implementations§
Source§impl OperandCast for Mem
impl OperandCast for Mem
fn as_operand(&self) -> &Operand
fn from_operand(op: &Operand) -> Self
Source§impl Ord for Mem
impl Ord for Mem
Source§impl PartialOrd for Mem
impl PartialOrd for Mem
impl Copy for Mem
impl Eq for Mem
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> 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