[−][src]Struct gameboy_core::emulator::Emulator
Implementations
impl Emulator
[src]
pub fn from_cartridge(cartridge: Cartridge, rtc: Box<dyn RTC>) -> Emulator
[src]
pub fn emulate(
&mut self,
system: &mut impl PixelMapper,
controller: &mut Controller
) -> StepResult
[src]
&mut self,
system: &mut impl PixelMapper,
controller: &mut Controller
) -> StepResult
pub fn get_cartridge(&self) -> &Cartridge
[src]
pub fn set_ram_change_callback(&mut self, f: Box<dyn FnMut(usize, u8)>)
[src]
pub fn get_cartridge_mut(&mut self) -> &mut Cartridge
[src]
pub fn get_audio_buffer(&self) -> &[f32]
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Emulator
impl !Send for Emulator
impl !Sync for Emulator
impl Unpin for Emulator
impl !UnwindSafe for Emulator
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>,