pub trait BaseReadableRegister<T: UIntLike> {
type Reg: RegisterLongName;
const REG_WIDTH: usize;
// Required method
fn base_get(&self) -> T;
}
Expand description
Trait to be implemented by custom register structs that support reading the current value
§DO NOT USE DIRECTLY
This must be public to prevent generating a private_in_public
but really should not be used directly. Use Read
instead, which
also incorporates this functionality.
Required Associated Constants§
Required Associated Types§
type Reg: RegisterLongName
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.