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,
}
Performs copy-assignment from
source.
Read more
Formats the value using the given formatter.
Read more
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self).
That is, this conversion is whatever the implementation of
From<T> for U chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more
Uses borrowed data to replace owned data, usually by cloning.
Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.