pub enum Action {
Press,
Release,
}Expand description
Represents an action that can be taken on a key or button.
Variants§
Implementations§
Source§impl Action
impl Action
Sourcepub fn from_press(is_press: bool) -> Self
pub fn from_press(is_press: bool) -> Self
Sourcepub fn from_release(is_release: bool) -> Self
pub fn from_release(is_release: bool) -> Self
Trait Implementations§
Source§impl Ord for Action
impl Ord for Action
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 Action
impl PartialOrd for Action
impl Copy for Action
impl Eq for Action
impl StructuralPartialEq for Action
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnsafeUnpin for Action
impl UnwindSafe for Action
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