pub struct EmulatorState {
pub memory: [u8; 4096],
pub stack: Vec<usize>,
pub variable_registers: [u8; 16],
pub screen_buffer: Vec<u8>,
pub index_register: usize,
pub program_counter: usize,
pub last_instruction: Instruction,
pub delay_timer: u16,
pub sound_timer: u16,
pub width: usize,
pub height: usize,
}Expand description
Data that is returned after each iteration of the interpreter as long as it is running as an iterator.
Fields§
§memory: [u8; 4096]§stack: Vec<usize>§variable_registers: [u8; 16]§screen_buffer: Vec<u8>§index_register: usize§program_counter: usize§last_instruction: Instruction§delay_timer: u16§sound_timer: u16§width: usize§height: usizeTrait Implementations§
Source§impl Clone for EmulatorState
impl Clone for EmulatorState
Source§fn clone(&self) -> EmulatorState
fn clone(&self) -> EmulatorState
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 EmulatorState
impl Debug for EmulatorState
Auto Trait Implementations§
impl Freeze for EmulatorState
impl RefUnwindSafe for EmulatorState
impl Send for EmulatorState
impl Sync for EmulatorState
impl Unpin for EmulatorState
impl UnsafeUnpin for EmulatorState
impl UnwindSafe for EmulatorState
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