pub struct Bank { /* private fields */ }
Expand description
The register bank.
The struct contains the whole register array.
Trait Implementations§
Source§impl RegisterBank<Word> for Bank
impl RegisterBank<Word> for Bank
Source§fn set(&mut self, register: RegisterId, word: Word)
fn set(&mut self, register: RegisterId, word: Word)
Sets a specific register in the bank.
Source§fn get(&self, register: RegisterId) -> Word
fn get(&self, register: RegisterId) -> Word
Gets a specific register from the bank.
Source§fn apply(&self, range: RegisterRange, function: BankApplication) -> Word
fn apply(&self, range: RegisterRange, function: BankApplication) -> Word
Apply the specified RangeApplication in the bank on the specified RegisterRange.
Source§fn slice(&self, range: RegisterRange) -> &[Word]
fn slice(&self, range: RegisterRange) -> &[Word]
Return a slice from the specified range in the bank.
Source§fn copy(&mut self, to: RegisterId, slice: &[Word])
fn copy(&mut self, to: RegisterId, slice: &[Word])
Copy the specified slice into the bank to the specified RegisterId and nexts. Read more
Auto Trait Implementations§
impl Freeze for Bank
impl RefUnwindSafe for Bank
impl Send for Bank
impl Sync for Bank
impl Unpin for Bank
impl UnwindSafe for Bank
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