Enum Key
pub enum Key {
Repeat,
AltRepeat,
Adaptive(u8),
}Expand description
History key kinds.
Variants§
Repeat
Re-emit the last remembered key output while pressed.
AltRepeat
Emit the configured alternate of the last remembered key output while pressed.
If the last output is unmapped (or history is empty), contributes no output.
Adaptive(u8)
Per-site adaptive key.
Looks up the last remembered output in this key’s rule table.
If no rule matches, emits AdaptiveKey::default.
The u8 indexes the System adaptive-key array.
Implementations§
§impl Key
impl Key
pub const fn new_repeat() -> Key
pub const fn new_repeat() -> Key
Constructs a Key::Repeat.
pub const fn new_alt_repeat() -> Key
pub const fn new_alt_repeat() -> Key
Constructs a Key::AltRepeat.
pub const fn new_adaptive(index: u8) -> Key
pub const fn new_adaptive(index: u8) -> Key
Constructs a Key::Adaptive referencing the given system index.
Trait Implementations§
impl Copy for Key
§impl<'de> Deserialize<'de> for Key
impl<'de> Deserialize<'de> for Key
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Key, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Key, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Key
Auto Trait Implementations§
impl Freeze for Key
impl RefUnwindSafe for Key
impl Send for Key
impl Sync for Key
impl Unpin for Key
impl UnsafeUnpin for Key
impl UnwindSafe for Key
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