pub struct Entry {
pub chord: KeyChord,
pub label: String,
pub kind: EntryKind,
pub layer: Option<KeymapLayer>,
}Expand description
One row of the popup.
Fields§
§chord: KeyChordThe key to press next. Rendered through Display for KeyChord,
except the wildcard row, which renders {char}.
label: StringNever blank — the label chain is total by construction (§4.1).
kind: EntryKindWhether the key fires a binding or opens a deeper prefix.
layer: Option<KeymapLayer>Which layer the binding came from. Carried for provenance in tests and future per-layer styling; not rendered in v1.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Entry
impl RefUnwindSafe for Entry
impl Send for Entry
impl Sync for Entry
impl Unpin for Entry
impl UnsafeUnpin for Entry
impl UnwindSafe for Entry
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