[][src]Struct retro_rs::Emulator

pub struct Emulator { /* fields omitted */ }

Methods

impl Emulator[src]

pub fn create(core_path: &Path, rom_path: &Path) -> Emulator[src]

pub fn run(&mut self, inputs: &[i16])[src]

pub fn reset(&mut self)[src]

pub fn pixel_format(&self) -> PixelFormat[src]

pub fn framebuffer_size(&self) -> (usize, usize)[src]

pub fn framebuffer_pitch(&self) -> usize[src]

pub fn peek_framebuffer<FBPeek, FBPeekRet>(&self, f: FBPeek) -> FBPeekRet where
    FBPeek: FnOnce(Option<&[u8]>) -> FBPeekRet, 
[src]

pub fn save(&self, bytes: &mut [u8])[src]

pub fn load(&mut self, bytes: &[u8]) -> bool[src]

pub fn save_size(&self) -> usize[src]

pub fn clear_cheats(&mut self)[src]

pub fn set_cheat(&mut self, index: usize, enabled: bool, code: &str)[src]

pub fn copy_framebuffer(&self, slice: &mut [u8]) -> Result<(), RetroRsError>[src]

Trait Implementations

impl FramebufferToImageBuffer for Emulator[src]

impl Drop for Emulator[src]

Auto Trait Implementations

impl !Send for Emulator

impl !Sync for Emulator

impl Unpin for Emulator

impl UnwindSafe for Emulator

impl RefUnwindSafe for Emulator

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for 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.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> SetParameter for T