Core

Struct Core 

Source
pub struct Core {
    pub lib: Library,
}

Fields§

§lib: Library

Implementations§

Source§

impl Core

Source

pub fn load(path: &str) -> Option<Core>

Source

pub extern "C" fn retro_set_environment( &self, cb: retro_environment_t, )

Source

pub extern "C" fn retro_set_video_refresh( &self, cb: retro_video_refresh_t, )

Source

pub extern "C" fn retro_set_audio_sample( &self, cb: retro_audio_sample_t, )

Source

pub extern "C" fn retro_set_audio_sample_batch( &self, cb: retro_audio_sample_batch_t, )

Source

pub extern "C" fn retro_set_input_poll(&self, cb: retro_input_poll_t)

Source

pub extern "C" fn retro_set_input_state( &self, cb: retro_input_state_t, )

Source

pub extern "C" fn retro_init(&self)

Source

pub extern "C" fn retro_deinit(&self)

Source

pub extern "C" fn retro_api_version(&self) -> c_uint

Source

pub extern "C" fn retro_get_system_info( &self, info: *mut retro_system_info, )

Source

pub extern "C" fn retro_get_system_av_info( &self, info: *mut retro_system_av_info, )

Source

pub extern "C" fn retro_set_controller_port_device( &self, port: c_uint, device: c_uint, )

Source

pub extern "C" fn retro_reset(&self)

Source

pub extern "C" fn retro_run(&self)

Source

pub extern "C" fn retro_serialize_size(&self) -> usize

Source

pub extern "C" fn retro_serialize( &self, data: *mut c_void, size: usize, ) -> bool

Source

pub extern "C" fn retro_unserialize( &self, data: *const c_void, size: usize, ) -> bool

Source

pub extern "C" fn retro_cheat_reset(&self)

Source

pub extern "C" fn retro_cheat_set( &self, index: c_uint, enabled: bool, code: *const c_char, )

Source

pub extern "C" fn retro_load_game( &self, game: *const retro_game_info, ) -> bool

Source

pub extern "C" fn retro_load_game_special( &self, game_type: c_uint, info: *const retro_game_info, num_info: usize, ) -> bool

Source

pub extern "C" fn retro_unload_game(&self)

Source

pub extern "C" fn retro_get_region(&self) -> c_uint

Source

pub extern "C" fn retro_get_memory_data( &self, id: c_uint, ) -> *mut c_void

Source

pub extern "C" fn retro_get_memory_size(&self, id: c_uint) -> usize

Auto Trait Implementations§

§

impl Freeze for Core

§

impl RefUnwindSafe for Core

§

impl Send for Core

§

impl Sync for Core

§

impl Unpin for Core

§

impl UnwindSafe for Core

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.