[][src]Struct tetanes::nes::Nes

pub struct Nes { /* fields omitted */ }

Implementations

impl Nes[src]

pub fn draw_config_menu(&mut self, data: &mut StateData) -> NesResult<()>[src]

impl Nes[src]

pub fn save_replay(&mut self) -> NesResult<()>[src]

Saves the replay buffer out to a file

impl Nes[src]

pub fn new() -> Self[src]

pub fn with_config(config: NesConfig) -> NesResult<Self>[src]

Create a new NES emulation with passed in config settings

pub fn run(self) -> NesResult<()>[src]

Begins emulation by starting the game engine loop

pub fn clock_frame(&mut self)[src]

Steps the console the number of instructions required to generate an entire frame

pub fn clock_seconds(&mut self, seconds: f32)[src]

Steps the console the number of seconds

Trait Implementations

impl Clocked for Nes[src]

fn clock(&mut self) -> usize[src]

Steps the console a single CPU instruction at a time

impl Clone for Nes[src]

impl Debug for Nes[src]

impl Default for Nes[src]

impl Powered for Nes[src]

fn power_on(&mut self)[src]

Powers on the console

fn power_off(&mut self)[src]

Powers off the console

fn reset(&mut self)[src]

Soft-resets the console

fn power_cycle(&mut self)[src]

Hard-resets the console

impl Savable for Nes[src]

impl State for Nes[src]

Auto Trait Implementations

impl !RefUnwindSafe for Nes

impl !Send for Nes

impl !Sync for Nes

impl Unpin for Nes

impl !UnwindSafe for Nes

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, 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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,