pub struct Registers {
pub registers: BTreeMap<String, RegisterValue>,
}
Fields§
§registers: BTreeMap<String, RegisterValue>
A set of registers which can be resized dynamically.
Implementations§
source§impl Registers
impl Registers
pub fn new() -> Self
pub fn set(&mut self, name: &str, value: RegisterValue)
pub fn get(&self, name: &str) -> Option<&RegisterValue>
pub fn allocate_register(&mut self) -> String
pub fn free_register(&mut self, name: &str)
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Registers
impl Send for Registers
impl Sync for Registers
impl Unpin for Registers
impl UnwindSafe for Registers
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