Struct ShiftOpShiftImm
pub struct ShiftOpShiftImm(/* private fields */);
Expand description
A shift operator amount.
Implementations§
§impl ShiftOpShiftImm
impl ShiftOpShiftImm
pub fn maybe_from_shift(shift: u64) -> Option<ShiftOpShiftImm>
pub fn maybe_from_shift(shift: u64) -> Option<ShiftOpShiftImm>
Create a new shiftop shift amount, if possible.
pub fn mask(self, bits: u8) -> ShiftOpShiftImm
pub fn mask(self, bits: u8) -> ShiftOpShiftImm
Mask down to a given number of bits.
Trait Implementations§
§impl Clone for ShiftOpShiftImm
impl Clone for ShiftOpShiftImm
§fn clone(&self) -> ShiftOpShiftImm
fn clone(&self) -> ShiftOpShiftImm
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 ShiftOpShiftImm
impl Debug for ShiftOpShiftImm
impl Copy for ShiftOpShiftImm
Auto Trait Implementations§
impl Freeze for ShiftOpShiftImm
impl RefUnwindSafe for ShiftOpShiftImm
impl Send for ShiftOpShiftImm
impl Sync for ShiftOpShiftImm
impl Unpin for ShiftOpShiftImm
impl UnwindSafe for ShiftOpShiftImm
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
)