Enum OperandSize
pub enum OperandSize {
Size32,
Size64,
}
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§
§impl OperandSize
impl OperandSize
pub fn from_bits<I>(bits: I) -> OperandSize
pub fn from_bits<I>(bits: I) -> OperandSize
Convert from a needed width to the smallest size that fits.
pub 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§
§impl Clone for OperandSize
impl Clone for OperandSize
§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 more§impl Debug for OperandSize
impl Debug for OperandSize
§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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§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.