pub struct Imm64(/* private fields */);
Expand description
64-bit immediate signed integer operand.
An Imm64
operand can also be used to represent immediate values of smaller integer types by
sign-extending to i64
.
Implementations§
Source§impl Imm64
impl Imm64
Sourcepub fn wrapping_neg(self) -> Self
pub fn wrapping_neg(self) -> Self
Return self negated.
Sourcepub fn sign_extend_from_width(&self, bit_width: u32) -> Self
pub fn sign_extend_from_width(&self, bit_width: u32) -> Self
Sign extend this immediate as if it were a signed integer of the given power-of-two width.
Sourcepub fn zero_extend_from_width(&self, bit_width: u32) -> Self
pub fn zero_extend_from_width(&self, bit_width: u32) -> Self
Zero extend this immediate as if it were an unsigned integer of the given power-of-two width.
Trait Implementations§
impl Copy for Imm64
impl Eq for Imm64
impl StructuralPartialEq for Imm64
Auto Trait Implementations§
impl Freeze for Imm64
impl RefUnwindSafe for Imm64
impl Send for Imm64
impl Sync for Imm64
impl Unpin for Imm64
impl UnwindSafe for Imm64
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.