[][src]Enum cpclib_asm::preamble::tokens::Register16

pub enum Register16 {
    Af,
    Hl,
    De,
    Bc,
    Sp,
}

Variants

Af
Hl
De
Bc
Sp

Methods

impl Register16[src]

pub fn high(self) -> Option<Register8>[src]

Return the high 8bit register if exists

pub fn low(self) -> Option<Register8>[src]

Return the low 8bit register if exists

pub fn split(self) -> (Option<Register8>, Option<Register8>)[src]

impl Register16[src]

pub fn is_af(&self) -> bool[src]

Check if register is $reg

impl Register16[src]

pub fn is_bc(&self) -> bool[src]

Check if register is $reg

impl Register16[src]

pub fn is_de(&self) -> bool[src]

Check if register is $reg

impl Register16[src]

pub fn is_hl(&self) -> bool[src]

Check if register is $reg

impl Register16[src]

pub fn is_sp(&self) -> bool[src]

Check if register is $reg

Trait Implementations

impl Clone for Register16[src]

impl Copy for Register16[src]

impl Debug for Register16[src]

impl Display for Register16[src]

impl Eq for Register16[src]

impl From<Register16> for DataAccess[src]

impl PartialEq<Register16> for Register16[src]

impl PartialOrd<Register16> for Register16[src]

impl StructuralEq for Register16[src]

impl StructuralPartialEq for Register16[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.