pub struct Imm(pub Operand);Tuple Fields§
§0: OperandImplementations§
Source§impl Imm
impl Imm
pub const fn new() -> Self
pub fn from_value<T: Into<i64>>(val: T, predicate: u32) -> Self
pub fn from_float(val: f32, predicate: u32) -> Self
pub fn from_double(val: f64, predicate: u32) -> Self
pub fn typ(&self) -> ImmType
pub fn set_type(&mut self, typ: ImmType)
pub fn reset_type(&mut self)
pub fn predicate(&self) -> u32
pub fn set_predicate(&mut self, predicate: u32)
pub fn reset_predicate(&mut self)
pub fn value(&self) -> i64
pub fn is_int(&self) -> bool
pub fn is_double(&self) -> bool
pub fn is_int8(&self) -> bool
pub fn is_uint8(&self) -> bool
pub fn is_int16(&self) -> bool
pub fn is_uint16(&self) -> bool
pub fn is_int32(&self) -> bool
pub fn is_uint32(&self) -> bool
pub fn value_as<T: FromPrimitive>(&self) -> T
pub fn int32_lo(&self) -> i32
pub fn int32_hi(&self) -> i32
pub fn uint32_lo(&self) -> u32
pub fn uint32_hi(&self) -> u32
pub fn set_value<T: ToPrimitive>(&mut self, val: T)
pub fn set_value_float<T: Into<f64>>(&mut self, val: T)
pub fn clone(&self) -> Self
pub fn sign_extend_8_bits(&mut self)
pub fn sign_extend_16_bits(&mut self)
pub fn sign_extend_32_bits(&mut self)
pub fn zero_extend_8_bits(&mut self)
pub fn zero_extend_16_bits(&mut self)
pub fn zero_extend_32_bits(&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 Imm
impl OperandCast for Imm
fn as_operand(&self) -> &Operand
fn from_operand(op: &Operand) -> Self
Source§impl Ord for Imm
impl Ord for Imm
Source§impl PartialOrd for Imm
impl PartialOrd for Imm
impl Copy for Imm
impl Eq for Imm
impl StructuralPartialEq for Imm
Auto Trait Implementations§
impl Freeze for Imm
impl RefUnwindSafe for Imm
impl Send for Imm
impl Sync for Imm
impl Unpin for Imm
impl UnwindSafe for Imm
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