pub trait Register:
Debug
+ Clone
+ Copy
+ PartialEq
+ Eq
+ Hash {
// Required method
fn code(&self) -> u8;
}
Expand description
A trait abstracting over architectural register families. This is usually implemented over an enum of all available registers in each family. This allows for code that is generic over register families.
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.