Struct rust_libretro_sys::retro_input_descriptor
source · [−]#[repr(C)]pub struct retro_input_descriptor {
pub port: c_uint,
pub device: c_uint,
pub index: c_uint,
pub id: c_uint,
pub description: *const c_char,
}Expand description
Describes how the libretro implementation maps a libretro input bind to its internal input system through a human readable string. This string can be used to better let a user configure input.
Fields
port: c_uintAssociates given parameters with a description.
device: c_uintindex: c_uintid: c_uintdescription: *const c_charHuman readable description for parameters. The pointer must remain valid until retro_unload_game() is called.
Trait Implementations
sourceimpl Clone for retro_input_descriptor
impl Clone for retro_input_descriptor
sourcefn clone(&self) -> retro_input_descriptor
fn clone(&self) -> retro_input_descriptor
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_input_descriptor
impl Debug for retro_input_descriptor
impl Copy for retro_input_descriptor
Auto Trait Implementations
impl RefUnwindSafe for retro_input_descriptor
impl !Send for retro_input_descriptor
impl !Sync for retro_input_descriptor
impl Unpin for retro_input_descriptor
impl UnwindSafe for retro_input_descriptor
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)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
