pub trait EditRegister<R, A>where
for<'a> R: EditableRegister<Address = A> + 'a,{
type Error;
// Required method
async fn edit<F>(&mut self, f: F) -> Result<(), Self::Error>
where for<'w> F: FnOnce(&'w mut R);
}Expand description
Trait to safely read-edit-write a register. Usefull when a register has reserved values for internal uses. Avoids writing garbage to the reserved bits.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.