pub enum GutterDecoration {
Sign {
line: u32,
sign: SignId,
},
}Expand description
A single gutter decoration contributed by a crate::Mode.
Each variant maps to one physical gutter column.
Variants§
Sign
A sign placement — vim’s :sign place, and since SG.4b the ONLY
kind of gutter decoration there is (SG.1).
Diff and Severity used to sit beside this. They were deleted rather
than deprecated because leaving them would have left the host with two
privileged gutter paths and a mechanism pretending to be general — the
exact half-migration shape that makes a “generic” seam quietly untrue.
A diff mark and a diagnostic are now definitions in the same registry a
plugin writes, named by their producers.
Carries only the line and the definition’s NAME; the glyph, its theme
element and its priority live in the SignRegistry. A placement is
produced per visible line on every refresh, so it stays the cheap half
of the pair on purpose.
An unknown id resolves to nothing and paints nothing — a provider placing a sign it never defined is a provider bug, and refusing to paint is the answer that keeps the gutter honest rather than inventing a glyph for it.
Fields
sign: SignIdThe registered definition to paint; resolved through the
SignRegistry.
Trait Implementations§
Source§impl Clone for GutterDecoration
impl Clone for GutterDecoration
Source§fn clone(&self) -> GutterDecoration
fn clone(&self) -> GutterDecoration
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for GutterDecoration
Source§impl Debug for GutterDecoration
impl Debug for GutterDecoration
impl Eq for GutterDecoration
Source§impl PartialEq for GutterDecoration
impl PartialEq for GutterDecoration
impl StructuralPartialEq for GutterDecoration
Auto Trait Implementations§
impl Freeze for GutterDecoration
impl RefUnwindSafe for GutterDecoration
impl Send for GutterDecoration
impl Sync for GutterDecoration
impl Unpin for GutterDecoration
impl UnsafeUnpin for GutterDecoration
impl UnwindSafe for GutterDecoration
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.