Struct Imm64
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§
§impl Imm64
impl Imm64
pub fn wrapping_neg(self) -> Imm64
pub fn wrapping_neg(self) -> Imm64
Return self negated.
pub fn sign_extend_from_width(&self, bit_width: u32) -> Imm64
pub fn sign_extend_from_width(&self, bit_width: u32) -> Imm64
Sign extend this immediate as if it were a signed integer of the given power-of-two width.
pub fn zero_extend_from_width(&self, bit_width: u32) -> Imm64
pub fn zero_extend_from_width(&self, bit_width: u32) -> Imm64
Zero extend this immediate as if it were an unsigned integer of the given power-of-two width.
Trait Implementations§
§impl<'de> Deserialize<'de> for Imm64
impl<'de> Deserialize<'de> for Imm64
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Imm64, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Imm64, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl IntoBytes for Imm64
impl IntoBytes for Imm64
§fn into_bytes(self) -> Vec<u8>
fn into_bytes(self) -> Vec<u8>
Return the little-endian byte representation of the implementing type.
§impl Serialize for Imm64
impl Serialize for Imm64
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more