[][src]Struct gameboy_core::Gameboy

pub struct Gameboy { /* fields omitted */ }

Implementations

impl Gameboy[src]

pub fn from_rom(rom: Vec<u8>, rtc: Box<dyn RTC>) -> Result<Gameboy, String>[src]

Loads game from rom. Needs a Real Time Clock

pub fn emulate(&mut self, system: &mut impl PixelMapper) -> StepResult[src]

Run emulation step

pub fn get_audio_buffer(&self) -> &[f32][src]

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

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

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

pub fn press_button(&mut self, button: Button)[src]

pub fn release_button(&mut self, button: Button)[src]

Auto Trait Implementations

impl !RefUnwindSafe for Gameboy

impl !Send for Gameboy

impl !Sync for Gameboy

impl Unpin for Gameboy

impl !UnwindSafe for Gameboy

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