Struct rs::keyboard::KeyStateId
source · [−]pub struct KeyStateId(ButtonPosition);
Expand description
When the submitted actions of keys need to be tracked, they need a stable, comparable ID. With layout::ButtonPosition, the IDs are unique within layouts.
Tuple Fields
0: ButtonPosition
Trait Implementations
sourceimpl Clone for KeyStateId
impl Clone for KeyStateId
sourcefn clone(&self) -> KeyStateId
fn clone(&self) -> KeyStateId
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 From<&ButtonPosition> for KeyStateId
impl From<&ButtonPosition> for KeyStateId
sourcefn from(v: &ButtonPosition) -> Self
fn from(v: &ButtonPosition) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<KeyStateId> for KeyStateId
impl PartialEq<KeyStateId> for KeyStateId
sourcefn eq(&self, other: &KeyStateId) -> bool
fn eq(&self, other: &KeyStateId) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &KeyStateId) -> bool
fn ne(&self, other: &KeyStateId) -> bool
This method tests for !=
.
impl StructuralPartialEq for KeyStateId
Auto Trait Implementations
impl RefUnwindSafe for KeyStateId
impl Send for KeyStateId
impl Sync for KeyStateId
impl Unpin for KeyStateId
impl UnwindSafe for KeyStateId
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