Enum Reg8
Source #[repr(u8)]
pub enum Reg8 {
B = 0,
C = 1,
D = 2,
E = 3,
H = 4,
L = 5,
A = 7,
}
Expand description
An enum of 8-bit registers.
Formats Reg8 as a string with the given formatter with prefix modification.
E.g. for Reg8::H writes “IXH” if prefix is Prefix::Xdd.
Performs copy-assignment from
source.
Read more
Formats the value using the given formatter.
Read more
Formats the value using the given formatter.
Read more
Return a string representation of this type.
Return an opcode part from this type.
Tests for self and other values to be equal, and is used by ==.
Tests for !=. The default implementation is almost always sufficient,
and should not be overridden without very good reason.
Attempt to convert to this type from an opcode.
The type returned in the event of a conversion error.
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from
self to
dest.
Read more
Returns the argument unchanged.
Calls U::from(self).
That is, this conversion is whatever the implementation of
From<T> for U chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more
Uses borrowed data to replace owned data, usually by cloning.
Read more
Converts the given value to a
String.
Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.