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§impl Debug for ShortcutMap
impl Debug for ShortcutMap
Auto Trait Implementations§
impl !Send for ShortcutMap
impl !Sync for ShortcutMap
impl Freeze for ShortcutMap
impl RefUnwindSafe 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