pub enum ModelineKey {
Global,
Buffer(BufferId),
}Expand description
Content-store key discriminator (ML.3). Content is keyed by
(ModelineKey, ElementId) so a single descriptor can carry distinct
content per pane: Buffer(id) for a Scope::PaneLocal element
(resolved against the pane’s buffer), Global for a Scope::Global
element (one value, rendered only on the active pane). A producer
pushes per-buffer content for each buffer it serves — e.g. each side
of a split diff shows its own +N ~M. See
docs/dev/architecture/modeline.md §4 (per-pane content resolution).
Variants§
Global
The single slot of a Scope::Global element.
Buffer(BufferId)
The slot of a Scope::PaneLocal element for panes showing this
buffer.
Trait Implementations§
Source§impl Clone for ModelineKey
impl Clone for ModelineKey
Source§fn clone(&self) -> ModelineKey
fn clone(&self) -> ModelineKey
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 ModelineKey
Source§impl Debug for ModelineKey
impl Debug for ModelineKey
impl Eq for ModelineKey
Source§impl Hash for ModelineKey
impl Hash for ModelineKey
Source§impl PartialEq for ModelineKey
impl PartialEq for ModelineKey
impl StructuralPartialEq for ModelineKey
Auto Trait Implementations§
impl Freeze for ModelineKey
impl RefUnwindSafe for ModelineKey
impl Send for ModelineKey
impl Sync for ModelineKey
impl Unpin for ModelineKey
impl UnsafeUnpin for ModelineKey
impl UnwindSafe for ModelineKey
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.