[−][src]Struct gameboy_core::Gameboy
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,