pub struct Keybinding {
pub key: String,
pub action: String,
}Expand description
A keyboard shortcut associated with a widget.
Fields§
§key: StringHuman-readable key combo (e.g. “Ctrl+S”, “↑/k”).
action: StringWhat the binding does.
Implementations§
Trait Implementations§
Source§impl Clone for Keybinding
impl Clone for Keybinding
Source§fn clone(&self) -> Keybinding
fn clone(&self) -> Keybinding
Returns a duplicate of the value. Read more
1.0.0 · 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 Keybinding
impl Debug for Keybinding
Source§impl PartialEq for Keybinding
impl PartialEq for Keybinding
impl Eq for Keybinding
impl StructuralPartialEq for Keybinding
Auto Trait Implementations§
impl Freeze for Keybinding
impl RefUnwindSafe for Keybinding
impl Send for Keybinding
impl Sync for Keybinding
impl Unpin for Keybinding
impl UnsafeUnpin for Keybinding
impl UnwindSafe for Keybinding
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.