Enum ark_api::applet::KeyEventType
source · [−]#[repr(u32)]
pub enum KeyEventType {
KeyPress,
KeyRelease,
Text,
}
Expand description
Key event type.
Variants
KeyPress
KeyRelease
Text
Trait Implementations
sourceimpl 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
. Read more
sourcefn 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
. Read more
sourceimpl Clone for KeyEventType
impl Clone for KeyEventType
sourcefn clone(&self) -> KeyEventType
fn clone(&self) -> KeyEventType
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 Debug for KeyEventType
impl Debug for KeyEventType
sourceimpl Hash for KeyEventType
impl Hash for KeyEventType
sourceimpl PartialEq<KeyEventType> for KeyEventType
impl PartialEq<KeyEventType> for KeyEventType
sourcefn 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 ==
. Read more
sourceimpl 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.
sourcefn try_from(
number: u32
) -> Result<KeyEventType, TryFromPrimitiveError<KeyEventType>>
fn try_from(
number: u32
) -> Result<KeyEventType, TryFromPrimitiveError<KeyEventType>>
Performs the conversion.
sourceimpl 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
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