pub trait RegisterData<RB: Integral>: Debug {
    fn register(&self, register: Register) -> Option<RB>;
    fn register_ref(&self, register: Register) -> Option<&RB>;
    fn register_mut(&mut self, register: Register) -> Option<&mut RB>;
}
Expand description

A trait for reading registers from a register collection

This

Required Methods

Try to get the value of the given register. Returns None if the register is not present in this collection.

Try to get a reference to the given register. Returns None if the register is not present in this collection.

Try to get a mutable reference to the given register. Returns None if the register is not present in this collection.

Implementors