Enum ark_api::applet::KeyEventType
source · pub enum KeyEventType {
KeyPress,
KeyRelease,
Text,
}Expand description
Key event type.
Variants§
Trait Implementations§
source§impl CheckedBitPattern for KeyEventType
impl CheckedBitPattern for KeyEventType
§type Bits = u32
type Bits = u32
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.source§fn is_valid_bit_pattern(
bits: &<KeyEventType as CheckedBitPattern>::Bits
) -> bool
fn is_valid_bit_pattern( bits: &<KeyEventType as CheckedBitPattern>::Bits ) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.source§impl Clone for KeyEventType
impl Clone for KeyEventType
source§fn clone(&self) -> KeyEventType
fn clone(&self) -> KeyEventType
Returns a copy of the value. Read more
1.0.0 · 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 KeyEventType
impl Debug for KeyEventType
source§impl Hash for KeyEventType
impl Hash for KeyEventType
source§impl PartialEq<KeyEventType> for KeyEventType
impl PartialEq<KeyEventType> for KeyEventType
source§fn eq(&self, other: &KeyEventType) -> bool
fn eq(&self, other: &KeyEventType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl TryFrom<u32> for KeyEventType
impl TryFrom<u32> for KeyEventType
§type Error = TryFromPrimitiveError<KeyEventType>
type Error = TryFromPrimitiveError<KeyEventType>
The type returned in the event of a conversion error.
source§fn try_from(
number: u32
) -> Result<KeyEventType, TryFromPrimitiveError<KeyEventType>>
fn try_from( number: u32 ) -> Result<KeyEventType, TryFromPrimitiveError<KeyEventType>>
Performs the conversion.
source§impl TryFromPrimitive for KeyEventType
impl TryFromPrimitive for KeyEventType
type Primitive = u32
const NAME: &'static str = "KeyEventType"
fn try_from_primitive( number: <KeyEventType as TryFromPrimitive>::Primitive ) -> Result<KeyEventType, TryFromPrimitiveError<KeyEventType>>
impl Copy for KeyEventType
impl Eq for KeyEventType
impl NoUninit for KeyEventType
impl StructuralEq for KeyEventType
impl StructuralPartialEq for KeyEventType
Auto Trait Implementations§
impl RefUnwindSafe for KeyEventType
impl Send for KeyEventType
impl Sync for KeyEventType
impl Unpin for KeyEventType
impl UnwindSafe for KeyEventType
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