pub struct LayerId(/* private fields */);Expand description
Stable id for a registered layer. Issued by
KeymapHandle::push_layer (minor-mode overlays, per-buffer
bindings); the caller passes it to KeymapHandle::pop_layer to
remove the layer. Layers created implicitly by a bind also get one
internally, but it is never handed out — remove those with
KeymapHandle::remove_layer.
Ids are allocated from a per-registry counter starting at 1 and are never reused within that registry.
Implementations§
Trait Implementations§
impl Copy for LayerId
impl Eq for LayerId
Source§impl Ord for LayerId
impl Ord for LayerId
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for LayerId
impl PartialOrd for LayerId
impl StructuralPartialEq for LayerId
Auto Trait Implementations§
impl Freeze for LayerId
impl RefUnwindSafe for LayerId
impl Send for LayerId
impl Sync for LayerId
impl Unpin for LayerId
impl UnsafeUnpin for LayerId
impl UnwindSafe for LayerId
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§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.