pub enum KeyboardLocation {
Standard,
Left,
Right,
Numpad,
Mobile,
Joystick,
}Expand description
The location on the keyboard of a key.
Variants§
Standard
The key has only one version, or the location can’t be distinguished.
Left
The left-hand version of a key.
Right
The right-hand version of a key.
Numpad
The key was on a numeric pad.
Mobile
The key was on a mobile device.
Joystick
The key was on a joystick.
Trait Implementations§
Source§impl Clone for KeyboardLocation
impl Clone for KeyboardLocation
Source§fn clone(&self) -> KeyboardLocation
fn clone(&self) -> KeyboardLocation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for KeyboardLocation
Source§impl Debug for KeyboardLocation
impl Debug for KeyboardLocation
impl Eq for KeyboardLocation
Source§impl PartialEq for KeyboardLocation
impl PartialEq for KeyboardLocation
Source§fn eq(&self, other: &KeyboardLocation) -> bool
fn eq(&self, other: &KeyboardLocation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for KeyboardLocation
Auto Trait Implementations§
impl Freeze for KeyboardLocation
impl RefUnwindSafe for KeyboardLocation
impl Send for KeyboardLocation
impl Sync for KeyboardLocation
impl Unpin for KeyboardLocation
impl UnsafeUnpin for KeyboardLocation
impl UnwindSafe for KeyboardLocation
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