pub struct Mem(pub BaseMem);Tuple Fields§
§0: BaseMemImplementations§
Source§impl Mem
 
impl Mem
pub const SIGNATURE_MEM_ADDR_TYPE_SHIFT: u32 = 14u32
pub const SIGNATURE_MEM_ADDR_TYPE_MASK: u32 = 49_152u32
pub const SIGNATURE_MEM_SHIFT_VALUE_SHIFT: u32 = 16u32
pub const SIGNATURE_MEM_SHIFT_VALUE_MASK: u32 = 196_608u32
pub const SIGNATURE_MEM_SEGMENT_SHIFT: u32 = 18u32
pub const SIGNATURE_MEM_SEGMENT_MASK: u32 = 1_835_008u32
pub const SIGNATURE_MEM_BROADCAST_SHIFT: u32 = 21u32
pub const SIGNATURE_MEM_BROADCAST_MASK: u32 = 14_680_064u32
pub const fn new() -> Self
pub fn base_reg(&self) -> Reg
pub fn index_reg(&self) -> Reg
pub fn set_index(&mut self, index: &BaseReg, shift: u32)
pub fn has_size(&self) -> bool
pub fn has_size_of(&self, s: u32) -> bool
pub fn size(&self) -> u32
pub fn set_size(&mut self, size: u32)
pub fn addr_type(&self) -> AddrType
pub fn set_addr_type(&mut self, addr_type: AddrType)
pub fn reset_addr_type(&mut self)
pub fn is_abs(&self) -> bool
pub fn set_abs(&mut self)
pub fn is_rel(&self) -> bool
pub fn set_rel(&mut self)
pub fn has_segment(&self) -> bool
pub fn segment(&self) -> SReg
pub fn segment_id(&self) -> u32
pub fn set_segment(&mut self, seg: SReg)
pub fn set_segment_id(&mut self, r_id: u32)
pub fn reset_segment(&mut self)
pub fn has_shift(&self) -> bool
pub fn shift(&self) -> u32
pub fn set_shift(&mut self, shift: u32)
pub fn reset_shift(&mut self)
pub fn has_broadcast(&self) -> bool
pub fn get_broadcast(&self) -> Broadcast
pub fn set_broadcast(&mut self, b: Broadcast)
pub fn reset_broadcast(&mut self)
pub fn _1to1(&self) -> Self
pub fn _1to2(&self) -> Self
pub fn _1to4(&self) -> Self
pub fn _1to8(&self) -> Self
pub fn _1to16(&self) -> Self
pub fn _1to32(&self) -> Self
pub fn _1to64(&self) -> Self
pub fn base_and_index_types(&self) -> u32
pub fn clone_broadcasted(&self, bcst: Broadcast) -> Self
pub fn from_signature_base_and_index_id_disp( signature: OperandSignature, base_id: u32, index_id: u32, offset: i32, ) -> Self
pub fn from_sym_and_index_shift_disp( base: &Sym, index: &BaseReg, shift: u32, off: i32, size: u32, signature: OperandSignature, ) -> Self
pub fn from_label_and_index_shift_disp( base: &Label, index: &BaseReg, shift: u32, off: i32, size: u32, signature: OperandSignature, ) -> Self
pub fn from_label_and_disp( base: &Label, off: i32, size: u32, signature: OperandSignature, ) -> Self
pub fn from_sym_and_disp( base: &Sym, off: i32, size: u32, signature: OperandSignature, ) -> Self
pub fn from_base_and_disp( base: &BaseReg, off: i32, size: u32, signature: OperandSignature, ) -> Self
pub fn from_base_and_index_shift_disp( base: &BaseReg, index: &BaseReg, shift: u32, off: i32, size: u32, signature: OperandSignature, ) -> Self
pub fn from_u64_and_index_shift_disp( base: u64, index: &BaseReg, shift: u32, size: u32, signature: OperandSignature, ) -> Self
pub fn from_u64(base: u64, size: u32, signature: OperandSignature) -> 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 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