pub struct Gameboy { /* private fields */ }Implementations§
Source§impl Gameboy
impl Gameboy
Sourcepub fn from_rom(rom: Vec<u8>, rtc: Box<dyn RTC>) -> Result<Gameboy, String>
pub fn from_rom(rom: Vec<u8>, rtc: Box<dyn RTC>) -> Result<Gameboy, String>
Loads game from rom. Needs a Real Time Clock
Sourcepub fn emulate(&mut self, system: &mut impl PixelMapper) -> StepResult
pub fn emulate(&mut self, system: &mut impl PixelMapper) -> StepResult
Run emulation step
pub fn get_audio_buffer(&self) -> &[f32]
pub fn get_cartridge(&self) -> &Cartridge
pub fn get_cartridge_mut(&mut self) -> &mut Cartridge
pub fn set_ram_change_callback(&mut self, f: Box<dyn FnMut(usize, u8)>)
Auto Trait Implementations§
impl Freeze for Gameboy
impl !RefUnwindSafe for Gameboy
impl !Send for Gameboy
impl !Sync for Gameboy
impl Unpin for Gameboy
impl UnsafeUnpin for Gameboy
impl !UnwindSafe for Gameboy
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