pub enum ByteRegister {
A,
F,
B,
C,
D,
E,
H,
L,
}Expand description
All 8-bit registers
Variants§
Implementations§
Source§impl ByteRegister
impl ByteRegister
Sourcepub fn lookup_byte(self) -> WordByte
pub fn lookup_byte(self) -> WordByte
Returns whether this 8-bit register is the high or low byte of its 16bit register
Sourcepub fn lookup_word_register(self) -> WordRegister
pub fn lookup_word_register(self) -> WordRegister
Returns which 16-bit register this 8-bit register is part of
Trait Implementations§
Source§impl Clone for ByteRegister
impl Clone for ByteRegister
Source§fn clone(&self) -> ByteRegister
fn clone(&self) -> ByteRegister
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ByteRegister
Source§impl Debug for ByteRegister
impl Debug for ByteRegister
Source§impl Disassemble for ByteRegister
impl Disassemble for ByteRegister
fn disassemble(&self) -> String
impl Eq for ByteRegister
Source§impl From<ByteRegister> for ByteRegisterOffset
impl From<ByteRegister> for ByteRegisterOffset
Source§fn from(original: ByteRegister) -> ByteRegisterOffset
fn from(original: ByteRegister) -> ByteRegisterOffset
Converts to this type from the input type.
Source§impl From<ByteRegisterOffset> for ByteRegister
impl From<ByteRegisterOffset> for ByteRegister
Source§fn from(original: ByteRegisterOffset) -> Self
fn from(original: ByteRegisterOffset) -> Self
Converts to this type from the input type.
Source§impl FromStr for ByteRegister
impl FromStr for ByteRegister
Source§impl PartialEq for ByteRegister
impl PartialEq for ByteRegister
impl StructuralPartialEq for ByteRegister
Source§impl TryFrom<ByteRegisterTarget> for ByteRegister
impl TryFrom<ByteRegisterTarget> for ByteRegister
Auto Trait Implementations§
impl Freeze for ByteRegister
impl RefUnwindSafe for ByteRegister
impl Send for ByteRegister
impl Sync for ByteRegister
impl Unpin for ByteRegister
impl UnsafeUnpin for ByteRegister
impl UnwindSafe for ByteRegister
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more