RegisterInfo

Trait RegisterInfo 

Source
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§

Source

type RegType: Register<InfoType = Self>

Required Methods§

Source

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.

Source

fn size(&self) -> usize

Size of the register in bytes.

Source

fn offset(&self) -> usize

Offset of the register in bytes from the start of the containing RegisterInfo::parent.

Source

fn implicit_extend(&self) -> ImplicitRegisterExtend

Used when this register aliases a logical register to determine what happens to the upper bits.

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.

Implementors§