pub struct Imm32<const HIGH_BIT: usize, const LOW_BIT: usize>(pub u32);Expand description
This is used to represent lazily-decoded immediate value,
which is written as imm[HIGH_BIT:LOW_BIT] in the risc-v specification.
Tuple Fields§
§0: u32Implementations§
Trait Implementations§
Source§impl<const LHS_HIGH_BIT: usize, const LHS_LOW_BIT: usize, const RHS_HIGH_BIT: usize, const RHS_LOW_BIT: usize> BitOr<Imm32<RHS_HIGH_BIT, RHS_LOW_BIT>> for Imm32<LHS_HIGH_BIT, LHS_LOW_BIT>where
If<{ _ }>: True,
If<{ _ }>: True,
If<{ _ }>: True,
impl<const LHS_HIGH_BIT: usize, const LHS_LOW_BIT: usize, const RHS_HIGH_BIT: usize, const RHS_LOW_BIT: usize> BitOr<Imm32<RHS_HIGH_BIT, RHS_LOW_BIT>> for Imm32<LHS_HIGH_BIT, LHS_LOW_BIT>where
If<{ _ }>: True,
If<{ _ }>: True,
If<{ _ }>: True,
impl<const HIGH_BIT: usize, const LOW_BIT: usize> Copy for Imm32<HIGH_BIT, LOW_BIT>
impl<const HIGH_BIT: usize, const LOW_BIT: usize> Eq for Imm32<HIGH_BIT, LOW_BIT>
impl<const HIGH_BIT: usize, const LOW_BIT: usize> StructuralPartialEq for Imm32<HIGH_BIT, LOW_BIT>
Auto Trait Implementations§
impl<const HIGH_BIT: usize, const LOW_BIT: usize> Freeze for Imm32<HIGH_BIT, LOW_BIT>
impl<const HIGH_BIT: usize, const LOW_BIT: usize> RefUnwindSafe for Imm32<HIGH_BIT, LOW_BIT>
impl<const HIGH_BIT: usize, const LOW_BIT: usize> Send for Imm32<HIGH_BIT, LOW_BIT>
impl<const HIGH_BIT: usize, const LOW_BIT: usize> Sync for Imm32<HIGH_BIT, LOW_BIT>
impl<const HIGH_BIT: usize, const LOW_BIT: usize> Unpin for Imm32<HIGH_BIT, LOW_BIT>
impl<const HIGH_BIT: usize, const LOW_BIT: usize> UnwindSafe for Imm32<HIGH_BIT, LOW_BIT>
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