#[non_exhaustive]pub enum KeypadKey {
Digit(u8),
Decimal,
Enter,
Add,
Subtract,
Multiply,
Divide,
Equal,
}Expand description
A numeric-keypad key. In application-keypad mode (DECNKM ?66 / DECKPAM, #74) these encode as the classic VT100/VT220 SS3 sequences; in numeric mode as the literal character. The consumer produces these for raw keypad identity — it owns NumLock / key-location resolution (#83).
#[non_exhaustive] (#843). A keypad namespace grows; a consumer constructs
these to hand to the encoder rather than matching on them, so an addition costs
it nothing.
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§
impl Copy for KeypadKey
impl Eq for KeypadKey
impl StructuralPartialEq for KeypadKey
Auto Trait Implementations§
impl Freeze for KeypadKey
impl RefUnwindSafe for KeypadKey
impl Send for KeypadKey
impl Sync for KeypadKey
impl Unpin for KeypadKey
impl UnsafeUnpin for KeypadKey
impl UnwindSafe for KeypadKey
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