[][src]Trait dynasmrt::Register

pub trait Register: Debug + Clone + Copy + PartialEq + Eq + Hash {
    pub fn code(&self) -> u8;
}

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

pub fn code(&self) -> u8[src]

Returns the integer ID of the register. Usually equivalent to casting the enum to an u8, but allows you to be generic over the register family.

Loading content...

Implementors

impl Register for RV[src]

impl Register for RX[src]

impl Register for RXSP[src]

impl Register for dynasmrt::x64::RC[src]

impl Register for Rq[src]

impl Register for dynasmrt::x64::Rx[src]

impl Register for RB[src]

impl Register for dynasmrt::x86::RC[src]

impl Register for RD[src]

impl Register for Rd[src]

impl Register for Rf[src]

impl Register for Rh[src]

impl Register for Rm[src]

impl Register for Rs[src]

impl Register for dynasmrt::x86::Rx[src]

Loading content...