Struct MoveWideConst
pub struct MoveWideConst {
pub bits: u16,
pub shift: u8,
}
Expand description
A 16-bit immediate for a MOVZ instruction, with a {0,16,32,48}-bit shift.
Fields§
§bits: u16
The value.
shift: u8
Result is bits
shifted 16*shift bits to the left.
Implementations§
§impl MoveWideConst
impl MoveWideConst
pub fn maybe_from_u64(value: u64) -> Option<MoveWideConst>
pub fn maybe_from_u64(value: u64) -> Option<MoveWideConst>
Construct a MoveWideConst from an arbitrary 64-bit constant if possible.
pub fn maybe_with_shift(imm: u16, shift: u8) -> Option<MoveWideConst>
pub fn maybe_with_shift(imm: u16, shift: u8) -> Option<MoveWideConst>
Create a MoveWideCosnt
from a given shift, if possible.
pub fn zero() -> MoveWideConst
pub fn zero() -> MoveWideConst
Create a zero immediate of this format.
Trait Implementations§
§impl Clone for MoveWideConst
impl Clone for MoveWideConst
§fn clone(&self) -> MoveWideConst
fn clone(&self) -> MoveWideConst
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 MoveWideConst
impl Debug for MoveWideConst
impl Copy for MoveWideConst
Auto Trait Implementations§
impl Freeze for MoveWideConst
impl RefUnwindSafe for MoveWideConst
impl Send for MoveWideConst
impl Sync for MoveWideConst
impl Unpin for MoveWideConst
impl UnwindSafe for MoveWideConst
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
)