Struct ShiftOpAndAmt
pub struct ShiftOpAndAmt { /* private fields */ }
Expand description
A shift operator with an amount, guaranteed to be within range.
Implementations§
§impl ShiftOpAndAmt
impl ShiftOpAndAmt
pub fn new(op: ShiftOp, shift: ShiftOpShiftImm) -> ShiftOpAndAmt
pub fn new(op: ShiftOp, shift: ShiftOpShiftImm) -> ShiftOpAndAmt
Create a new shift operator with an amount.
pub fn amt(&self) -> ShiftOpShiftImm
pub fn amt(&self) -> ShiftOpShiftImm
Get the shift amount.
Trait Implementations§
§impl Clone for ShiftOpAndAmt
impl Clone for ShiftOpAndAmt
§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 more§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