pub enum InputBinding {
Key(KeyCode),
Mouse(MouseButton),
}Expand description
Anything that can be bound to an Action.
Variants§
Trait Implementations§
Source§impl Clone for InputBinding
impl Clone for InputBinding
Source§fn clone(&self) -> InputBinding
fn clone(&self) -> InputBinding
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 moreSource§impl Debug for InputBinding
impl Debug for InputBinding
Source§impl Hash for InputBinding
impl Hash for InputBinding
Source§impl PartialEq for InputBinding
impl PartialEq for InputBinding
Source§fn eq(&self, other: &InputBinding) -> bool
fn eq(&self, other: &InputBinding) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for InputBinding
impl Eq for InputBinding
impl StructuralPartialEq for InputBinding
Auto Trait Implementations§
impl Freeze for InputBinding
impl RefUnwindSafe for InputBinding
impl Send for InputBinding
impl Sync for InputBinding
impl Unpin for InputBinding
impl UnsafeUnpin for InputBinding
impl UnwindSafe for InputBinding
Blanket Implementations§
Source§impl<T> AppLifecycle for Twhere
T: ?Sized,
impl<T> AppLifecycle for Twhere
T: ?Sized,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.