pub enum PushLayerKind {
MajorMode(ModeId),
MinorMode(ModeId),
Buffer,
}Expand description
What kind of runtime-pushed layer to install.
K.1.b (2026-05-30): MinorMode now carries a typed
ModeId — the layer’s identity = the mode’s identity.
Pushing for the same mode_id is idempotent on the layer
(replaces bindings; no sibling layer minted). Buffer
stays opaque (a future K.1.x slice will type it on
lattice_core::BufferId for symmetry).
Variants§
MajorMode(ModeId)
Install / replace the KeymapLayer::MajorMode layer for this mode.
MinorMode(ModeId)
Install / replace the KeymapLayer::MinorMode layer for this mode.
Buffer
Install / replace the single KeymapLayer::Buffer layer. There is
one Buffer layer per registry, not one per buffer: a second push
replaces the first’s bindings and returns the same LayerId.
Trait Implementations§
Source§impl Clone for PushLayerKind
impl Clone for PushLayerKind
Source§fn clone(&self) -> PushLayerKind
fn clone(&self) -> PushLayerKind
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 moreimpl Copy for PushLayerKind
Source§impl Debug for PushLayerKind
impl Debug for PushLayerKind
impl Eq for PushLayerKind
Source§impl PartialEq for PushLayerKind
impl PartialEq for PushLayerKind
impl StructuralPartialEq for PushLayerKind
Auto Trait Implementations§
impl Freeze for PushLayerKind
impl RefUnwindSafe for PushLayerKind
impl Send for PushLayerKind
impl Sync for PushLayerKind
impl Unpin for PushLayerKind
impl UnsafeUnpin for PushLayerKind
impl UnwindSafe for PushLayerKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.