pub struct KeyBindingDisplay { /* private fields */ }Expand description
A listed key binding paired with derived display fields.
Implementations§
Source§impl KeyBindingDisplay
impl KeyBindingDisplay
Sourcepub fn table_name(&self) -> &str
pub fn table_name(&self) -> &str
Returns the table name.
Sourcepub const fn binding(&self) -> &KeyBinding
pub const fn binding(&self) -> &KeyBinding
Returns the binding.
Sourcepub fn key_string(&self) -> &str
pub fn key_string(&self) -> &str
Returns the canonical key string.
Sourcepub fn command_string(&self) -> &str
pub fn command_string(&self) -> &str
Returns the canonical command string.
Trait Implementations§
Source§impl Clone for KeyBindingDisplay
impl Clone for KeyBindingDisplay
Source§fn clone(&self) -> KeyBindingDisplay
fn clone(&self) -> KeyBindingDisplay
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 KeyBindingDisplay
impl Debug for KeyBindingDisplay
Source§impl PartialEq for KeyBindingDisplay
impl PartialEq for KeyBindingDisplay
Source§fn eq(&self, other: &KeyBindingDisplay) -> bool
fn eq(&self, other: &KeyBindingDisplay) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for KeyBindingDisplay
impl StructuralPartialEq for KeyBindingDisplay
Auto Trait Implementations§
impl Freeze for KeyBindingDisplay
impl RefUnwindSafe for KeyBindingDisplay
impl Send for KeyBindingDisplay
impl Sync for KeyBindingDisplay
impl Unpin for KeyBindingDisplay
impl UnsafeUnpin for KeyBindingDisplay
impl UnwindSafe for KeyBindingDisplay
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