pub struct ShortcutMap {
pub bindings: Vec<ShortcutBinding>,
}Fields§
§bindings: Vec<ShortcutBinding>Implementations§
Source§impl ShortcutMap
impl ShortcutMap
pub fn new() -> Self
pub fn bind(self, key: Key, modifiers: Modifiers, action: Action) -> Self
pub fn bind_action(self, action: Action) -> Self
pub fn merge(self, other: ShortcutMap) -> Self
pub fn insert(&mut self, key: Key, modifiers: Modifiers, action: Action)
pub fn action_for(&self, chord: &KeyChord) -> Option<Action>
Trait Implementations§
Source§impl Clone for ShortcutMap
impl Clone for ShortcutMap
Source§fn clone(&self) -> ShortcutMap
fn clone(&self) -> ShortcutMap
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 ShortcutMap
impl Debug for ShortcutMap
Source§impl Default for ShortcutMap
impl Default for ShortcutMap
Source§fn default() -> ShortcutMap
fn default() -> ShortcutMap
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ShortcutMap
impl RefUnwindSafe for ShortcutMap
impl !Send for ShortcutMap
impl !Sync for ShortcutMap
impl Unpin for ShortcutMap
impl UnsafeUnpin for ShortcutMap
impl UnwindSafe for ShortcutMap
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