Struct rust_libretro_sys::retro_game_info
source · [−]#[repr(C)]pub struct retro_game_info {
pub path: *const c_char,
pub data: *const c_void,
pub size: size_t,
pub meta: *const c_char,
}Fields
path: *const c_charPath to game, UTF-8 encoded.
Sometimes used as a reference for building other paths.
May be NULL if game was loaded from stdin or similar,
but in this case some cores will be unable to load data.
So, it is preferable to fabricate something here instead
of passing NULL, which will help more cores to succeed.
retro_system_info::need_fullpath requires
that this path is valid.
data: *const c_voidMemory buffer of loaded game. Will be NULL if need_fullpath was set.
size: size_tSize of memory buffer.
meta: *const c_charString of implementation specific meta-data.
Trait Implementations
sourceimpl Clone for retro_game_info
impl Clone for retro_game_info
sourcefn clone(&self) -> retro_game_info
fn clone(&self) -> retro_game_info
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for retro_game_info
impl Debug for retro_game_info
impl Copy for retro_game_info
Auto Trait Implementations
impl RefUnwindSafe for retro_game_info
impl !Send for retro_game_info
impl !Sync for retro_game_info
impl Unpin for retro_game_info
impl UnwindSafe for retro_game_info
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
