pub struct Immediate64 { /* private fields */ }Expand description
Represents an 64-bit immediate value.
Implementations§
Source§impl Immediate64
impl Immediate64
pub const fn from_imm8_zero_extended(value: Immediate8) -> Self
pub const fn from_imm8_sign_extended(value: Immediate8) -> Self
pub const fn from_imm16_zero_extended(value: Immediate16) -> Self
pub const fn from_imm16_sign_extended(value: Immediate16) -> Self
pub const fn from_imm32_zero_extended(value: Immediate32) -> Self
pub const fn from_imm32_sign_extended(value: Immediate32) -> Self
pub const fn from_u64(value: u64) -> Self
pub const fn from_i64(value: i64) -> Self
pub const fn as_u64(self) -> u64
pub const fn as_i64(self) -> i64
pub const fn encode(self) -> [u8; 8]
pub const fn equals(self, other: Self) -> bool
Trait Implementations§
Source§impl Clone for Immediate64
impl Clone for Immediate64
Source§fn clone(&self) -> Immediate64
fn clone(&self) -> Immediate64
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Immediate64
impl Debug for Immediate64
Source§impl From<Immediate64> for i64
impl From<Immediate64> for i64
Source§fn from(value: Immediate64) -> Self
fn from(value: Immediate64) -> Self
Converts to this type from the input type.
Source§impl From<Immediate64> for u64
impl From<Immediate64> for u64
Source§fn from(value: Immediate64) -> Self
fn from(value: Immediate64) -> Self
Converts to this type from the input type.
Source§impl From<i64> for Immediate64
impl From<i64> for Immediate64
Source§impl From<u64> for Immediate64
impl From<u64> for Immediate64
Source§impl Hash for Immediate64
impl Hash for Immediate64
Source§impl PartialEq for Immediate64
impl PartialEq for Immediate64
Source§fn eq(&self, other: &Immediate64) -> bool
fn eq(&self, other: &Immediate64) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for Immediate64
impl Eq for Immediate64
impl StructuralPartialEq for Immediate64
Auto Trait Implementations§
impl Freeze for Immediate64
impl RefUnwindSafe for Immediate64
impl Send for Immediate64
impl Sync for Immediate64
impl Unpin for Immediate64
impl UnsafeUnpin for Immediate64
impl UnwindSafe for Immediate64
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