pub enum Register16 {
BC,
DE,
HL,
AF,
SP,
}Expand description
A 16 bit register.
Does not include PC, the program counter, used to indicate which
instruction is being executed next.
Variants§
BC
16 bit register that’s made up of 2 8 bit registers, B and C.
DE
16 bit register that’s made up of 2 8 bit registers, D and E.
HL
16 bit register that’s made up of 2 8 bit registers, H and L.
AF
16 bit register that’s made up of 2 8 bit registers, A and F.
SP
The stack pointer.
Trait Implementations§
Source§impl Clone for Register16
impl Clone for Register16
Source§fn clone(&self) -> Register16
fn clone(&self) -> Register16
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 moreSource§impl Debug for Register16
impl Debug for Register16
Source§impl Hash for Register16
impl Hash for Register16
Source§impl PartialEq for Register16
impl PartialEq for Register16
Source§fn eq(&self, other: &Register16) -> bool
fn eq(&self, other: &Register16) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for Register16
impl Eq for Register16
impl StructuralPartialEq for Register16
Auto Trait Implementations§
impl Freeze for Register16
impl RefUnwindSafe for Register16
impl Send for Register16
impl Sync for Register16
impl Unpin for Register16
impl UnsafeUnpin for Register16
impl UnwindSafe for Register16
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