Trait Keys

Source
pub trait Keys {
    type Automation: Debug + Index<usize, Output = AutomationKey>;
    type Callback: Debug + Index<usize, Output = CallbackKey>;
    type Chorded: Debug + Index<usize, Output = ChordedKey>;
    type ChordedAuxiliary: Debug + Index<usize, Output = ChordedAuxiliaryKey>;
    type Keyboard: Debug + Index<usize, Output = KeyboardKey>;
    type LayerModifiers: Debug + Index<usize, Output = LayeredModifierKey>;
    type Layered: Debug + Index<usize, Output = LayeredKey>;
    type Sticky: Debug + Index<usize, Output = StickyKey>;
    type TapDance: Debug + Index<usize, Output = TapDanceKey>;
    type TapHold: Debug + Index<usize, Output = TapHoldKey>;
}
Expand description

Convenience trait for the data storage types.

Required Associated Types§

Implementors§

Source§

impl Keys for KeyVecs

Source§

type Automation = Vec<Key>

Source§

type Callback = Vec<Key>

Source§

type Chorded = Vec<Key<Ref, CHORDED_MAX_CHORDS, CHORDED_MAX_CHORD_SIZE, CHORDED_MAX_OVERLAPPING_CHORD_SIZE, CHORDED_MAX_PRESSED_INDICES>>

Source§

type ChordedAuxiliary = Vec<AuxiliaryKey<Ref, CHORDED_MAX_CHORDS, CHORDED_MAX_CHORD_SIZE, CHORDED_MAX_PRESSED_INDICES>>

Source§

type Keyboard = Vec<Key>

Source§

type LayerModifiers = Vec<ModifierKey>

Source§

type Layered = Vec<LayeredKey<Ref, LAYERED_LAYER_COUNT>>

Source§

type Sticky = Vec<Key>

Source§

type TapDance = Vec<Key<Ref, TAP_DANCE_MAX_DEF_COUNT>>

Source§

type TapHold = Vec<Key<Ref>>

Source§

impl<const AUTOMATION: usize, const CALLBACK: usize, const CHORDED: usize, const CHORDED_AUXILIARY: usize, const KEYBOARD: usize, const LAYERED: usize, const LAYER_MODIFIERS: usize, const STICKY: usize, const TAP_DANCE: usize, const TAP_HOLD: usize> Keys for KeyArrays<AUTOMATION, CALLBACK, CHORDED, CHORDED_AUXILIARY, KEYBOARD, LAYERED, LAYER_MODIFIERS, STICKY, TAP_DANCE, TAP_HOLD>

Source§

type Automation = [Key; AUTOMATION]

Source§

type Callback = [Key; CALLBACK]

Source§

type Chorded = [Key<Ref, CHORDED_MAX_CHORDS, CHORDED_MAX_CHORD_SIZE, CHORDED_MAX_OVERLAPPING_CHORD_SIZE, CHORDED_MAX_PRESSED_INDICES>; CHORDED]

Source§

type ChordedAuxiliary = [AuxiliaryKey<Ref, CHORDED_MAX_CHORDS, CHORDED_MAX_CHORD_SIZE, CHORDED_MAX_PRESSED_INDICES>; CHORDED_AUXILIARY]

Source§

type Keyboard = [Key; KEYBOARD]

Source§

type LayerModifiers = [ModifierKey; LAYER_MODIFIERS]

Source§

type Layered = [LayeredKey<Ref, LAYERED_LAYER_COUNT>; LAYERED]

Source§

type Sticky = [Key; STICKY]

Source§

type TapDance = [Key<Ref, TAP_DANCE_MAX_DEF_COUNT>; TAP_DANCE]

Source§

type TapHold = [Key<Ref>; TAP_HOLD]