#[repr(C)]pub struct retro_variable {
pub key: *const c_char,
pub value: *const c_char,
}
Fields§
§key: *const c_char
Variable to query in RETRO_ENVIRONMENT_GET_VARIABLE. If NULL, obtains the complete environment string if more complex parsing is necessary. The environment string is formatted as key-value pairs delimited by semicolons as so: “key1=value1;key2=value2;…”
value: *const c_char
Value to be obtained. If key does not exist, it is set to NULL.
Trait Implementations§
Source§impl Clone for retro_variable
impl Clone for retro_variable
Source§fn clone(&self) -> retro_variable
fn clone(&self) -> retro_variable
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_variable
impl Debug for retro_variable
impl Copy for retro_variable
Auto Trait Implementations§
impl Freeze for retro_variable
impl RefUnwindSafe for retro_variable
impl !Send for retro_variable
impl !Sync for retro_variable
impl Unpin for retro_variable
impl UnwindSafe for retro_variable
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