pub struct Emulator { /* private fields */ }Implementations§
Source§impl Emulator
impl Emulator
pub fn new(rom: &[u8], save_data: Option<&[u8]>) -> Result<Self, RomParserError>
pub fn clock(&mut self) -> Option<&[u8; 61440]>
pub fn set_controller1(&mut self, state: u8)
pub fn set_controller2(&mut self, state: u8)
pub fn reset(&mut self)
pub fn get_save_data(&self) -> Option<&[u8]>
Auto Trait Implementations§
impl Freeze for Emulator
impl !RefUnwindSafe for Emulator
impl Send for Emulator
impl Sync for Emulator
impl Unpin for Emulator
impl !UnwindSafe for Emulator
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