[][src]Enum z80emu::Reg16

#[repr(u8)]pub enum Reg16 {
    BC,
    DE,
    HL,
    SP,
}

Variants

BC
DE
HL
SP

Implementations

impl Reg16[src]

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

Formats Reg16 as a string with the given formatter with prefix modification. E.g. for Reg16::HL writes "IX" if prefix is Prefix::Xdd.

Trait Implementations

impl Clone for Reg16[src]

impl Copy for Reg16[src]

impl Debug for Reg16[src]

impl Display for Reg16[src]

impl Eq for Reg16[src]

impl<'_> From<Reg16> for &'_ str[src]

impl From<u8> for Reg16[src]

impl Hash for Reg16[src]

impl PartialEq<Reg16> for Reg16[src]

impl StructuralEq for Reg16[src]

impl StructuralPartialEq for Reg16[src]

Auto Trait Implementations

impl RefUnwindSafe for Reg16

impl Send for Reg16

impl Sync for Reg16

impl Unpin for Reg16

impl UnwindSafe for Reg16

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.