pub struct KeymapRegistry { /* private fields */ }Expand description
Keymap registry. Cheap to clone (Arc-backed); every
caller (App, plugins, the future WIT host) holds a
KeymapHandle that wraps the same underlying registry.
Construction: KeymapRegistry::new returns an empty
registry; the App’s startup pass enumerates the
KeymapEntry catalog and calls bind for each entry into
KeymapLayer::Builtin.
Implementations§
Source§impl KeymapRegistry
impl KeymapRegistry
Sourcepub fn new() -> Arc<Self> ⓘ
pub fn new() -> Arc<Self> ⓘ
An empty registry (no layers, leader DEFAULT_LEADER, no command
registry — so no motion mirroring until
KeymapHandle::set_command_registry). Callers normally use
KeymapHandle::new, which wraps exactly this.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for KeymapRegistry
impl !RefUnwindSafe for KeymapRegistry
impl !UnwindSafe for KeymapRegistry
impl Send for KeymapRegistry
impl Sync for KeymapRegistry
impl Unpin for KeymapRegistry
impl UnsafeUnpin for KeymapRegistry
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