#[repr(C)]pub struct GamepadId {
pub id: u32,
}Expand description
A connected gamepad’s id — stable for the lifetime of the connection,
assigned by the backend on connect. (gilrs GamepadId / the platform
device id, normalised to a u32.)
Fields§
§id: u32Trait Implementations§
Source§impl Ord for GamepadId
impl Ord for GamepadId
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for GamepadId
impl PartialOrd for GamepadId
impl Copy for GamepadId
impl Eq for GamepadId
impl StructuralPartialEq for GamepadId
Auto Trait Implementations§
impl Freeze for GamepadId
impl RefUnwindSafe for GamepadId
impl Send for GamepadId
impl Sync for GamepadId
impl Unpin for GamepadId
impl UnsafeUnpin for GamepadId
impl UnwindSafe for GamepadId
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