Trait Keys

Source
pub trait Keys {
    type Keyboard: Debug + Index<usize, Output = Key>;
    type Callback: Debug + Index<usize, Output = Key>;
    type Sticky: Debug + Index<usize, Output = Key>;
    type TapDance: Debug + Index<usize, Output = Key<Ref>>;
    type TapHold: Debug + Index<usize, Output = Key<Ref>>;
    type LayerModifiers: Debug + Index<usize, Output = ModifierKey>;
    type Layered: Debug + Index<usize, Output = LayeredKey<Ref>>;
    type Chorded: Debug + Index<usize, Output = Key<Ref>>;
    type ChordedAuxiliary: Debug + Index<usize, Output = AuxiliaryKey<Ref>>;
}
Expand description

Convenience trait for the data storage types.

Required Associated Types§

Source

type Keyboard: Debug + Index<usize, Output = Key>

Type used by key::keyboard::System.

Source

type Callback: Debug + Index<usize, Output = Key>

Type used by key::callback::System.

Source

type Sticky: Debug + Index<usize, Output = Key>

Type used by key::sticky::System.

Source

type TapDance: Debug + Index<usize, Output = Key<Ref>>

Type used by key::tap_dance::System.

Source

type TapHold: Debug + Index<usize, Output = Key<Ref>>

Type used by key::tap_hold::System.

Source

type LayerModifiers: Debug + Index<usize, Output = ModifierKey>

Type used by key::layered::System.

Source

type Layered: Debug + Index<usize, Output = LayeredKey<Ref>>

Type used by key::layered::System.

Source

type Chorded: Debug + Index<usize, Output = Key<Ref>>

Type used by key::chorded::System.

Source

type ChordedAuxiliary: Debug + Index<usize, Output = AuxiliaryKey<Ref>>

Type used by key::chorded::System.

Implementors§

Source§

impl Keys for KeyVecs

Source§

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