[][src]Struct lochnes::nes::Nes

pub struct Nes<'a, I> where
    I: NesIo
{ pub io: &'a I, pub mapper: Mapper, pub ram: Cell<[u8; 2048]>, pub cpu: Cpu, pub ppu: Ppu, // some fields omitted }

Fields

io: &'a Imapper: Mapperram: Cell<[u8; 2048]>cpu: Cpuppu: Ppu

Methods

impl<'a, I> Nes<'a, I> where
    I: NesIo
[src]

pub fn new(io: &'a I, rom: Rom) -> Self[src]

pub fn read_u8(&self, addr: u16) -> u8[src]

pub fn read_u16(&self, addr: u16) -> u16[src]

pub fn write_u8(&self, addr: u16, value: u8)[src]

pub fn read_ppu_u8(&self, addr: u16) -> u8[src]

pub fn write_ppu_u8(&self, addr: u16, value: u8)[src]

pub fn run(&'a self) -> impl Generator<Yield = NesStep, Return = !> + 'a[src]

Trait Implementations

impl<'a, I: Clone> Clone for Nes<'a, I> where
    I: NesIo,
    I::Input: Clone
[src]

Auto Trait Implementations

impl<'a, I> Send for Nes<'a, I> where
    I: Sync,
    <I as NesIo>::Input: Sync

impl<'a, I> !Sync for Nes<'a, I>

impl<'a, I> Unpin for Nes<'a, I>

impl<'a, I> UnwindSafe for Nes<'a, I> where
    I: RefUnwindSafe,
    <I as NesIo>::Input: RefUnwindSafe

impl<'a, I> !RefUnwindSafe for Nes<'a, I>

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for 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<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]