pub enum DecorationKind {
InlayHint,
CodeLens,
DocumentLink,
Highlight,
Custom(u32),
}Expand description
A coarse decoration kind tag.
Variants§
InlayHint
Inline inlay hint (usually from LSP).
CodeLens
Code lens (usually above a line).
DocumentLink
Document link (clickable range).
Highlight
Highlight decoration (e.g. match/bracket highlights).
Custom(u32)
A custom, integration-defined kind.
Trait Implementations§
Source§impl Clone for DecorationKind
impl Clone for DecorationKind
Source§fn clone(&self) -> DecorationKind
fn clone(&self) -> DecorationKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DecorationKind
impl Debug for DecorationKind
Source§impl Ord for DecorationKind
impl Ord for DecorationKind
Source§fn cmp(&self, other: &DecorationKind) -> Ordering
fn cmp(&self, other: &DecorationKind) -> Ordering
1.21.0 · 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 PartialEq for DecorationKind
impl PartialEq for DecorationKind
Source§impl PartialOrd for DecorationKind
impl PartialOrd for DecorationKind
impl Copy for DecorationKind
impl Eq for DecorationKind
impl StructuralPartialEq for DecorationKind
Auto Trait Implementations§
impl Freeze for DecorationKind
impl RefUnwindSafe for DecorationKind
impl Send for DecorationKind
impl Sync for DecorationKind
impl Unpin for DecorationKind
impl UnsafeUnpin for DecorationKind
impl UnwindSafe for DecorationKind
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