pub trait ReadRegister<R, A>where
R: ReadableRegister<Address = A>,{
type Error;
// Required method
fn read(&mut self) -> Result<R, Self::Error>;
}Expand description
Trait to safely read a register. Only a readable register can be read.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".