pub enum OperandSize {
Size32,
Size64,
}
Available on crate feature
arm64
only.Expand description
Type used to communicate the operand size of a machine instruction, as AArch64 has 32- and 64-bit variants of many instructions (and integer registers).
Variants§
Implementations§
Source§impl OperandSize
impl OperandSize
Sourcepub fn from_bits<I: Into<usize>>(bits: I) -> OperandSize
pub fn from_bits<I: Into<usize>>(bits: I) -> OperandSize
Convert from a needed width to the smallest size that fits.
Sourcepub fn from_ty(ty: Type) -> OperandSize
pub fn from_ty(ty: Type) -> OperandSize
Convert from an integer type into the smallest size that fits.
Trait Implementations§
Source§impl Clone for OperandSize
impl Clone for OperandSize
Source§fn clone(&self) -> OperandSize
fn clone(&self) -> OperandSize
Returns a copy of the value. Read more
1.0.0 · 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 OperandSize
impl Debug for OperandSize
Source§impl PartialEq for OperandSize
impl PartialEq for OperandSize
impl Copy for OperandSize
impl Eq for OperandSize
impl StructuralPartialEq for OperandSize
Auto Trait Implementations§
impl Freeze for OperandSize
impl RefUnwindSafe for OperandSize
impl Send for OperandSize
impl Sync for OperandSize
impl Unpin for OperandSize
impl UnwindSafe for OperandSize
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