pub struct ShiftOpAndAmt { /* private fields */ }
Available on crate feature
arm64
only.Expand description
A shift operator with an amount, guaranteed to be within range.
Implementations§
Source§impl ShiftOpAndAmt
impl ShiftOpAndAmt
Sourcepub fn new(op: ShiftOp, shift: ShiftOpShiftImm) -> ShiftOpAndAmt
pub fn new(op: ShiftOp, shift: ShiftOpShiftImm) -> ShiftOpAndAmt
Create a new shift operator with an amount.
Sourcepub fn amt(&self) -> ShiftOpShiftImm
pub fn amt(&self) -> ShiftOpShiftImm
Get the shift amount.
Trait Implementations§
Source§impl Clone for ShiftOpAndAmt
impl Clone for ShiftOpAndAmt
Source§fn clone(&self) -> ShiftOpAndAmt
fn clone(&self) -> ShiftOpAndAmt
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 ShiftOpAndAmt
impl Debug for ShiftOpAndAmt
impl Copy for ShiftOpAndAmt
Auto Trait Implementations§
impl Freeze for ShiftOpAndAmt
impl RefUnwindSafe for ShiftOpAndAmt
impl Send for ShiftOpAndAmt
impl Sync for ShiftOpAndAmt
impl Unpin for ShiftOpAndAmt
impl UnwindSafe for ShiftOpAndAmt
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