Enum glfw::JoystickEvent
source · #[repr(i32)]pub enum JoystickEvent {
Connected = 262_145,
Disconnected = 262_146,
}
Expand description
Joystick events.
Variants§
Trait Implementations§
source§impl Clone for JoystickEvent
impl Clone for JoystickEvent
source§fn clone(&self) -> JoystickEvent
fn clone(&self) -> JoystickEvent
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for JoystickEvent
impl Debug for JoystickEvent
source§impl Hash for JoystickEvent
impl Hash for JoystickEvent
source§impl Ord for JoystickEvent
impl Ord for JoystickEvent
source§fn cmp(&self, other: &JoystickEvent) -> Ordering
fn cmp(&self, other: &JoystickEvent) -> Ordering
1.21.0 · 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 PartialEq for JoystickEvent
impl PartialEq for JoystickEvent
source§fn eq(&self, other: &JoystickEvent) -> bool
fn eq(&self, other: &JoystickEvent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for JoystickEvent
impl PartialOrd for JoystickEvent
source§fn partial_cmp(&self, other: &JoystickEvent) -> Option<Ordering>
fn partial_cmp(&self, other: &JoystickEvent) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for JoystickEvent
impl Eq for JoystickEvent
impl StructuralPartialEq for JoystickEvent
Auto Trait Implementations§
impl RefUnwindSafe for JoystickEvent
impl Send for JoystickEvent
impl Sync for JoystickEvent
impl Unpin for JoystickEvent
impl UnwindSafe for JoystickEvent
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