Struct CoreAPI

Source
pub struct CoreAPI {
Show 25 fields pub retro_set_environment: unsafe extern "C" fn(callback: EnvironmentFn), pub retro_set_video_refresh: unsafe extern "C" fn(callback: VideoRefreshFn), pub retro_set_audio_sample: unsafe extern "C" fn(callback: AudioSampleFn), pub retro_set_audio_sample_batch: unsafe extern "C" fn(callback: AudioSampleBatchFn), pub retro_set_input_poll: unsafe extern "C" fn(callback: InputPollFn), pub retro_set_input_state: unsafe extern "C" fn(callback: InputStateFn), pub retro_init: unsafe extern "C" fn(), pub retro_deinit: unsafe extern "C" fn(), pub retro_api_version: unsafe extern "C" fn() -> c_uint, pub retro_get_system_info: unsafe extern "C" fn(info: *mut SystemInfo), pub retro_get_system_av_info: unsafe extern "C" fn(info: *mut SystemAvInfo), pub retro_set_controller_port_device: unsafe extern "C" fn(port: c_uint, device: c_uint), pub retro_reset: unsafe extern "C" fn(), pub retro_run: unsafe extern "C" fn(), pub retro_serialize_size: unsafe extern "C" fn() -> size_t, pub retro_serialize: unsafe extern "C" fn(data: *mut c_void, size: size_t), pub retro_unserialize: unsafe extern "C" fn(data: *const c_void, size: size_t) -> bool, pub retro_cheat_reset: unsafe extern "C" fn(), pub retro_cheat_set: unsafe extern "C" fn(index: c_uint, enabled: bool, code: *const c_char), pub retro_load_game: unsafe extern "C" fn(game: *const GameInfo) -> bool, pub retro_load_game_special: unsafe extern "C" fn(game_type: c_uint, info: *const GameInfo, num_info: size_t) -> bool, pub retro_unload_game: unsafe extern "C" fn(), pub retro_get_region: unsafe extern "C" fn() -> c_uint, pub retro_get_memory_data: unsafe extern "C" fn(id: c_uint) -> *mut c_void, pub retro_get_memory_size: unsafe extern "C" fn(id: c_uint) -> size_t,
}

Fields§

§retro_set_environment: unsafe extern "C" fn(callback: EnvironmentFn)§retro_set_video_refresh: unsafe extern "C" fn(callback: VideoRefreshFn)§retro_set_audio_sample: unsafe extern "C" fn(callback: AudioSampleFn)§retro_set_audio_sample_batch: unsafe extern "C" fn(callback: AudioSampleBatchFn)§retro_set_input_poll: unsafe extern "C" fn(callback: InputPollFn)§retro_set_input_state: unsafe extern "C" fn(callback: InputStateFn)§retro_init: unsafe extern "C" fn()§retro_deinit: unsafe extern "C" fn()§retro_api_version: unsafe extern "C" fn() -> c_uint§retro_get_system_info: unsafe extern "C" fn(info: *mut SystemInfo)§retro_get_system_av_info: unsafe extern "C" fn(info: *mut SystemAvInfo)§retro_set_controller_port_device: unsafe extern "C" fn(port: c_uint, device: c_uint)§retro_reset: unsafe extern "C" fn()§retro_run: unsafe extern "C" fn()§retro_serialize_size: unsafe extern "C" fn() -> size_t§retro_serialize: unsafe extern "C" fn(data: *mut c_void, size: size_t)§retro_unserialize: unsafe extern "C" fn(data: *const c_void, size: size_t) -> bool§retro_cheat_reset: unsafe extern "C" fn()§retro_cheat_set: unsafe extern "C" fn(index: c_uint, enabled: bool, code: *const c_char)§retro_load_game: unsafe extern "C" fn(game: *const GameInfo) -> bool§retro_load_game_special: unsafe extern "C" fn(game_type: c_uint, info: *const GameInfo, num_info: size_t) -> bool§retro_unload_game: unsafe extern "C" fn()§retro_get_region: unsafe extern "C" fn() -> c_uint§retro_get_memory_data: unsafe extern "C" fn(id: c_uint) -> *mut c_void§retro_get_memory_size: unsafe extern "C" fn(id: c_uint) -> size_t

Trait Implementations§

Source§

impl Clone for CoreAPI

Source§

fn clone(&self) -> CoreAPI

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CoreAPI

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.