smart_keymap::key::chorded

Trait ChordedKey

Source
pub trait ChordedKey<K: Key> {
    // Required methods
    fn passthrough_key(&self) -> &K;
    fn chorded_key(&self) -> Option<&K>;
}
Expand description

Trait for PressedKeyState.

Required Methods§

Source

fn passthrough_key(&self) -> &K

The chorded key’s “passthrough” key.

Source

fn chorded_key(&self) -> Option<&K>

The chorded key’s “chorded” key.

Implementors§

Source§

impl<K: Key> ChordedKey<K> for AuxiliaryKey<K>

Source§

impl<K: Key> ChordedKey<K> for Key<K>