[][src]Enum z80emu::Reg8

#[repr(u8)]pub enum Reg8 {
    B,
    C,
    D,
    E,
    H,
    L,
    A,
}

Variants

B
C
D
E
H
L
A

Implementations

impl Reg8[src]

pub fn format_with_prefix(
    self,
    f: &mut Formatter<'_>,
    prefix: Option<Prefix>
) -> Result
[src]

Formats Reg8 as a string with the given formatter with prefix modification. E.g. for Reg8::H writes "IXH" if prefix is Prefix::Xdd.

Trait Implementations

impl Clone for Reg8[src]

impl Copy for Reg8[src]

impl Debug for Reg8[src]

impl Display for Reg8[src]

impl Eq for Reg8[src]

impl Hash for Reg8[src]

impl PartialEq<Reg8> for Reg8[src]

impl StructuralEq for Reg8[src]

impl StructuralPartialEq for Reg8[src]

impl TryFrom<u8> for Reg8[src]

type Error = ()

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for Reg8

impl Send for Reg8

impl Sync for Reg8

impl Unpin for Reg8

impl UnwindSafe for Reg8

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.