pub struct Keymap { /* private fields */ }
Implementations§
source§impl Keymap
impl Keymap
pub fn new(bindings: Vec<KeyBinding>) -> Self
pub fn version(&self) -> KeymapVersion
pub fn bindings_for_action( &self, action_id: TypeId ) -> impl Iterator<Item = &KeyBinding>
pub fn add_bindings<T: IntoIterator<Item = KeyBinding>>(&mut self, bindings: T)
pub fn clear(&mut self)
pub fn bindings(&self) -> Vec<&KeyBinding>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Keymap
impl !Send for Keymap
impl !Sync for Keymap
impl Unpin for Keymap
impl !UnwindSafe for Keymap
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