Enum android_activity::input::KeyAction
source · #[non_exhaustive]#[repr(u32)]pub enum KeyAction {
Down = 0,
Up = 1,
Multiple = 2,
}
Expand description
Key actions.
See the NDK docs
§Android Extensible Enum
This is a runtime extensible enum and
should be handled similar to a #[non_exhaustive]
enum to maintain
forwards compatibility.
Implements Into<u32>
and From<u32>
for converting to/from Android SDK
integer values.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
source§impl FromPrimitive for KeyAction
impl FromPrimitive for KeyAction
source§impl PartialEq for KeyAction
impl PartialEq for KeyAction
impl Copy for KeyAction
impl Eq for KeyAction
impl StructuralPartialEq for KeyAction
Auto Trait Implementations§
impl Freeze for KeyAction
impl RefUnwindSafe for KeyAction
impl Send for KeyAction
impl Sync for KeyAction
impl Unpin for KeyAction
impl UnwindSafe for KeyAction
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