pub struct VimDescriptor {
pub key: KeyEvent,
pub desc: Option<&'static str>,
}Expand description
A single built-in vim FSM binding, for which-key display.
Fields§
§key: KeyEventThe key event that triggers this binding.
desc: Option<&'static str>Short human-readable description.
None means prefix-only node (submenu — shows as “…” in the popup).
Trait Implementations§
Source§impl Clone for VimDescriptor
impl Clone for VimDescriptor
Source§fn clone(&self) -> VimDescriptor
fn clone(&self) -> VimDescriptor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VimDescriptor
impl Debug for VimDescriptor
impl Eq for VimDescriptor
Source§impl PartialEq for VimDescriptor
impl PartialEq for VimDescriptor
Source§fn eq(&self, other: &VimDescriptor) -> bool
fn eq(&self, other: &VimDescriptor) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for VimDescriptor
Auto Trait Implementations§
impl Freeze for VimDescriptor
impl RefUnwindSafe for VimDescriptor
impl Send for VimDescriptor
impl Sync for VimDescriptor
impl Unpin for VimDescriptor
impl UnsafeUnpin for VimDescriptor
impl UnwindSafe for VimDescriptor
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