pub trait RegisterInfo: Sized {
type RegType: Register<InfoType = Self>;
// Required methods
fn parent(&self) -> Option<Self::RegType>;
fn size(&self) -> usize;
fn offset(&self) -> usize;
fn implicit_extend(&self) -> ImplicitRegisterExtend;
}Expand description
Information about a register.
Required Associated Types§
Required Methods§
sourcefn parent(&self) -> Option<Self::RegType>
fn parent(&self) -> Option<Self::RegType>
The register that this register is an alias of.
§Example (x86-64)
The register rax is a parent of the register eax.
sourcefn offset(&self) -> usize
fn offset(&self) -> usize
Offset of the register in bytes from the start of the containing RegisterInfo::parent.
sourcefn implicit_extend(&self) -> ImplicitRegisterExtend
fn implicit_extend(&self) -> ImplicitRegisterExtend
Used when this register aliases a logical register to determine what happens to the upper bits.
Object Safety§
This trait is not object safe.