pub struct PaneId(pub u32);Expand description
Process-monotonic pane id. Distinct from BufferId: a pane
holds a buffer + viewport, but two panes can show the same
buffer. Allocated by PaneId::next at split time.
Tuple Fields§
§0: u32Implementations§
Source§impl PaneId
impl PaneId
Sourcepub const POPUP: Self
pub const POPUP: Self
Reserved synthetic id for the floating-popup
“pane”. The floating help popup is an overlay, not a pane-tree
leaf, so the cells worker has no leaf to key its DisplayMatrix
on. build_cells_panes registers the popup buffer under this
sentinel id so BOTH popup states route through the shared
compose_pane_lines reading a real matrix (Fork 1, popup
unification). next() allocates from 1 upward and never reaches
u32::MAX, so the sentinel can never collide with a real leaf.
Slice: PU.1b-3.
Sourcepub const COMPLETION_DOCS: Self
pub const COMPLETION_DOCS: Self
Reserved synthetic id for the Insert-mode completion-docs
side popup — a SECOND simultaneous overlay (it coexists with the
candidate list and, if open, the floating Self::POPUP). Like
POPUP it is not a pane-tree leaf, so build_cells_panes
registers its ephemeral backing buffer under this sentinel so the
docs content routes through the same compose_pane_lines seam.
u32::MAX - 1 — still far above any next()-allocated leaf.
Slice: PU.5.
Sourcepub const MINIBUFFER_BAND: Self
pub const MINIBUFFER_BAND: Self
Reserved synthetic id for the minibuffer BAND — the advisory
surface below all panes (which-key’s grid). A THIRD simultaneous
overlay: it coexists with Self::POPUP by design, which is the whole
point of the band. A popup and a band are different mechanisms — the
popup slot is exclusive and the user asked for what is in it, while the
band is advisory and timer-driven — so sharing one slot meant the band
evicted whatever the user had open. u32::MAX - 2, still far above any
next()-allocated leaf.
Slice: WK.12.
Trait Implementations§
impl Copy for PaneId
impl Eq for PaneId
impl StructuralPartialEq for PaneId
Auto Trait Implementations§
impl Freeze for PaneId
impl RefUnwindSafe for PaneId
impl Send for PaneId
impl Sync for PaneId
impl Unpin for PaneId
impl UnsafeUnpin for PaneId
impl UnwindSafe for PaneId
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
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
key and return true if they are equal.