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§
Object Safety§
This trait is not object safe.