pub enum ShiftKind {
ShiftLeft,
ShiftRightLogical,
ShiftRightArithmetic,
RotateLeft,
RotateRight,
}
Expand description
These indicate the form of a scalar shift/rotate: left, signed right, unsigned right.
Variants§
ShiftLeft
Left shift.
ShiftRightLogical
Inserts zeros in the most significant bits.
ShiftRightArithmetic
Replicates the sign bit in the most significant bits.
RotateLeft
Left rotation.
RotateRight
Right rotation.
Trait Implementations§
impl Copy for ShiftKind
Auto Trait Implementations§
impl Freeze for ShiftKind
impl RefUnwindSafe for ShiftKind
impl Send for ShiftKind
impl Sync for ShiftKind
impl Unpin for ShiftKind
impl UnwindSafe for ShiftKind
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