Trait drone_core::reg::RwRegUnique
[−]
[src]
pub trait RwRegUnique<'a>: RReg<Utt> + WRegUnique<'a> + RegRef<'a, Utt> { fn modify<F>(&'a mut self, f: F)
where
F: for<'b> FnOnce(&'b mut Self::Hold) -> &'b mut Self::Hold; }
Register that can read and write its value in a single-threaded context.
Required Methods
fn modify<F>(&'a mut self, f: F) where
F: for<'b> FnOnce(&'b mut Self::Hold) -> &'b mut Self::Hold,
F: for<'b> FnOnce(&'b mut Self::Hold) -> &'b mut Self::Hold,
Atomically updates the register's value.
Implementors
impl<'a, T> RwRegUnique<'a> for T where
T: RReg<Utt> + WRegUnique<'a> + RegRef<'a, Utt>,