[−][src]Struct retro_rs::Emulator
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]
FBPeek: FnOnce(Option<&[u8]>) -> FBPeekRet,
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]
fn create_imagebuffer(
&self
) -> Result<ImageBuffer<Rgb<u8>, Vec<u8>>, RetroRsError>
[src]
&self
) -> Result<ImageBuffer<Rgb<u8>, Vec<u8>>, RetroRsError>
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]
U: From<T>,
impl<T> From<T> for T
[src]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,