#[repr(C)]
pub struct retro_game_info { pub path: *const c_char, pub data: *const c_void, pub size: usize, pub meta: *const c_char, }

Fields§

§path: *const c_char

Path 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_void

Memory buffer of loaded game. Will be NULL if need_fullpath was set.

§size: usize

Size of memory buffer.

§meta: *const c_char

String of implementation specific meta-data.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. 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.