pub struct PublishedKeymap {
pub name: &'static str,
pub bindings: &'static [(&'static str, &'static str)],
}Expand description
A single published keymap entry collected via
Context::publish_keymap (issue #236).
Once registered for the current frame, every entry is queryable through
Context::published_keymaps and is
rendered automatically by the command-palette help overlay.
Fields§
§name: &'static strOptional widget / scope name (e.g. "rich_log", "table").
bindings: &'static [(&'static str, &'static str)](key_combo, description) pairs. Always 'static — no per-frame
allocation.
Implementations§
Trait Implementations§
Source§impl Clone for PublishedKeymap
impl Clone for PublishedKeymap
Source§fn clone(&self) -> PublishedKeymap
fn clone(&self) -> PublishedKeymap
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 moreAuto Trait Implementations§
impl Freeze for PublishedKeymap
impl RefUnwindSafe for PublishedKeymap
impl Send for PublishedKeymap
impl Sync for PublishedKeymap
impl Unpin for PublishedKeymap
impl UnsafeUnpin for PublishedKeymap
impl UnwindSafe for PublishedKeymap
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