pub struct Keybindings { /* private fields */ }Expand description
Mapping from action ID to list of key IDs that trigger it.
Implementations§
Source§impl Keybindings
impl Keybindings
pub fn new() -> Self
Sourcepub fn with_defaults() -> Self
pub fn with_defaults() -> Self
Create keybindings from default pi-compatible bindings.
Sourcepub fn merge(&mut self, other: Keybindings)
pub fn merge(&mut self, other: Keybindings)
Merge another keybindings into this one (overwrites existing).
Trait Implementations§
Source§impl Clone for Keybindings
impl Clone for Keybindings
Source§fn clone(&self) -> Keybindings
fn clone(&self) -> Keybindings
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 Keybindings
impl Debug for Keybindings
Auto Trait Implementations§
impl Freeze for Keybindings
impl RefUnwindSafe for Keybindings
impl Send for Keybindings
impl Sync for Keybindings
impl Unpin for Keybindings
impl UnsafeUnpin for Keybindings
impl UnwindSafe for Keybindings
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