#[repr(C)]pub struct retro_core_option_definition {
pub key: *const c_char,
pub desc: *const c_char,
pub info: *const c_char,
pub values: [retro_core_option_value; 128],
pub default_value: *const c_char,
}
Fields§
§key: *const c_char
Variable to query in RETRO_ENVIRONMENT_GET_VARIABLE.
desc: *const c_char
Human-readable core option description (used as menu label)
info: *const c_char
Human-readable core option information (used as menu sublabel)
values: [retro_core_option_value; 128]
Array of retro_core_option_value structs, terminated by NULL
default_value: *const c_char
Default core option value. Must match one of the values in the retro_core_option_value array, otherwise will be ignored
Trait Implementations§
Source§impl Clone for retro_core_option_definition
impl Clone for retro_core_option_definition
Source§fn clone(&self) -> retro_core_option_definition
fn clone(&self) -> retro_core_option_definition
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for retro_core_option_definition
impl Debug for retro_core_option_definition
impl Copy for retro_core_option_definition
Auto Trait Implementations§
impl Freeze for retro_core_option_definition
impl RefUnwindSafe for retro_core_option_definition
impl !Send for retro_core_option_definition
impl !Sync for retro_core_option_definition
impl Unpin for retro_core_option_definition
impl UnwindSafe for retro_core_option_definition
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more