[][src]Struct gameboy_core::emulator::Emulator

pub struct Emulator { /* fields omitted */ }

Methods

impl Emulator[src]

pub fn from_cartridge(cartridge: Cartridge) -> Emulator[src]

pub fn emulate<T: PixelMapper>(
    &mut self,
    system: &mut T,
    controller: &mut Controller
) -> bool
[src]

pub fn get_cartridge(&self) -> &Cartridge[src]

pub fn set_ram_change_callback(&mut self, f: Box<dyn FnMut(usize, u8)>)[src]

Auto Trait Implementations

impl !Send for Emulator

impl !Sync for Emulator

impl Unpin for Emulator

impl !UnwindSafe for Emulator

impl !RefUnwindSafe for Emulator

Blanket Implementations

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

impl<T> From<T> for T[src]

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]