pub struct Shamt<Type> { /* private fields */ }Expand description
Shift amount of an instruction, which is always below the width of Type in bits.
Type is the type of the shifted value: the register type for most instructions, and u32 for
instructions that operate on 32-bit words on RV64, like slliw. Shifts by this amount never
overflow, so execution doesn’t need to mask it.
Implementations§
Trait Implementations§
impl<Type: Copy> Copy for Shamt<Type>
impl<Type> Eq for Shamt<Type>
Auto Trait Implementations§
impl<Type> Freeze for Shamt<Type>where
PhantomData<Type>: Freeze,
impl<Type> RefUnwindSafe for Shamt<Type>where
PhantomData<Type>: RefUnwindSafe,
impl<Type> Send for Shamt<Type>where
PhantomData<Type>: Send,
impl<Type> Sync for Shamt<Type>where
PhantomData<Type>: Sync,
impl<Type> Unpin for Shamt<Type>where
PhantomData<Type>: Unpin,
impl<Type> UnsafeUnpin for Shamt<Type>where
PhantomData<Type>: UnsafeUnpin,
impl<Type> UnwindSafe for Shamt<Type>where
PhantomData<Type>: UnwindSafe,
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