pub struct BasicRegisters<Reg, const ZEROSTORE: bool = false>where
Reg: BasicRegister,{ /* private fields */ }Expand description
A basic set of RISC-V GPRs (General Purpose Registers).
ZEROSTORE generic determines whether to zero x0 register on write instead of checking
register index on read. match loop usually performs better with branching, while threaded
execution benefits from zeroing.
Trait Implementations§
Source§impl<Reg, const ZEROSTORE: bool> Clone for BasicRegisters<Reg, ZEROSTORE>
impl<Reg, const ZEROSTORE: bool> Clone for BasicRegisters<Reg, ZEROSTORE>
Source§fn clone(&self) -> BasicRegisters<Reg, ZEROSTORE>
fn clone(&self) -> BasicRegisters<Reg, ZEROSTORE>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<Reg, const ZEROSTORE: bool> Copy for BasicRegisters<Reg, ZEROSTORE>
Source§impl<Reg, const ZEROSTORE: bool> Debug for BasicRegisters<Reg, ZEROSTORE>
impl<Reg, const ZEROSTORE: bool> Debug for BasicRegisters<Reg, ZEROSTORE>
Source§impl<Reg, const ZEROSTORE: bool> Default for BasicRegisters<Reg, ZEROSTORE>where
Reg: BasicRegister,
impl<Reg, const ZEROSTORE: bool> Default for BasicRegisters<Reg, ZEROSTORE>where
Reg: BasicRegister,
Source§impl<Reg, const ZEROSTORE: bool> RegisterFile<Reg> for BasicRegisters<Reg, ZEROSTORE>where
Reg: BasicRegister,
impl<Reg, const ZEROSTORE: bool> RegisterFile<Reg> for BasicRegisters<Reg, ZEROSTORE>where
Reg: BasicRegister,
Auto Trait Implementations§
impl<Reg, const ZEROSTORE: bool> Freeze for BasicRegisters<Reg, ZEROSTORE>
impl<Reg, const ZEROSTORE: bool> RefUnwindSafe for BasicRegisters<Reg, ZEROSTORE>
impl<Reg, const ZEROSTORE: bool> Send for BasicRegisters<Reg, ZEROSTORE>
impl<Reg, const ZEROSTORE: bool> Sync for BasicRegisters<Reg, ZEROSTORE>
impl<Reg, const ZEROSTORE: bool> Unpin for BasicRegisters<Reg, ZEROSTORE>
impl<Reg, const ZEROSTORE: bool> UnsafeUnpin for BasicRegisters<Reg, ZEROSTORE>
impl<Reg, const ZEROSTORE: bool> UnwindSafe for BasicRegisters<Reg, ZEROSTORE>
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