pub struct EffectiveBindings { /* private fields */ }Implementations§
Source§impl EffectiveBindings
impl EffectiveBindings
pub fn action( &self, context: InputContext, event: KeyEvent, ) -> Option<TuiAction>
Sourcepub fn bound_actions(&self, context: InputContext) -> Vec<TuiAction>
pub fn bound_actions(&self, context: InputContext) -> Vec<TuiAction>
Every action this context binds, sorted by name so the order is stable.
For the help overlay’s completeness guard: that overlay’s per-context action list is written by hand, and a binding it does not name is a key that works and that nobody can discover.
pub fn chords(&self, context: InputContext, action: TuiAction) -> &[KeyChord]
pub fn label(&self, context: InputContext, action: TuiAction) -> String
pub fn canonical_event( &self, context: InputContext, action: TuiAction, ) -> KeyEvent
Trait Implementations§
Source§impl Clone for EffectiveBindings
impl Clone for EffectiveBindings
Source§impl Debug for EffectiveBindings
impl Debug for EffectiveBindings
Source§impl Default for EffectiveBindings
impl Default for EffectiveBindings
impl Eq for EffectiveBindings
Source§impl PartialEq for EffectiveBindings
impl PartialEq for EffectiveBindings
impl StructuralPartialEq for EffectiveBindings
Auto Trait Implementations§
impl Freeze for EffectiveBindings
impl RefUnwindSafe for EffectiveBindings
impl Send for EffectiveBindings
impl Sync for EffectiveBindings
impl Unpin for EffectiveBindings
impl UnsafeUnpin for EffectiveBindings
impl UnwindSafe for EffectiveBindings
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more