[][src]Enum olympia_core::registers::ByteRegister

pub enum ByteRegister {
    A,
    F,
    B,
    C,
    D,
    E,
    H,
    L,
}

All 8-bit registers

Variants

A
F
B
C
D
E
H
L

Methods

impl ByteRegister[src]

pub fn lookup_byte(self) -> WordByte[src]

Returns whether this 8-bit register is the high or low byte of its 16bit register

pub fn lookup_word_register(self) -> WordRegister[src]

Returns which 16-bit register this 8-bit register is part of

Trait Implementations

impl Clone for ByteRegister[src]

impl Copy for ByteRegister[src]

impl Debug for ByteRegister[src]

impl Eq for ByteRegister[src]

impl PartialEq<ByteRegister> for ByteRegister[src]

impl StructuralEq for ByteRegister[src]

impl StructuralPartialEq for ByteRegister[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, 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.