pub enum DiagnosticTag {
Unnecessary,
Deprecated,
}Expand description
An LSP-aligned diagnostic tag — a rendering hint editors apply on top of the severity.
Serialized as the LSP DiagnosticTag NUMBER (1 / 2) so protocol clients forward it
without a mapping table.
Variants§
Unnecessary
Unused or unreachable code — editors render it faded/dimmed (LSP value 1).
Deprecated
Deprecated code — editors render it struck through (LSP value 2).
Trait Implementations§
Source§impl Clone for DiagnosticTag
impl Clone for DiagnosticTag
Source§fn clone(&self) -> DiagnosticTag
fn clone(&self) -> DiagnosticTag
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 DiagnosticTag
Source§impl Debug for DiagnosticTag
impl Debug for DiagnosticTag
Source§impl<'de> Deserialize<'de> for DiagnosticTag
impl<'de> Deserialize<'de> for DiagnosticTag
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DiagnosticTag
Source§impl PartialEq for DiagnosticTag
impl PartialEq for DiagnosticTag
Source§fn eq(&self, other: &DiagnosticTag) -> bool
fn eq(&self, other: &DiagnosticTag) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DiagnosticTag
impl Serialize for DiagnosticTag
impl StructuralPartialEq for DiagnosticTag
Auto Trait Implementations§
impl Freeze for DiagnosticTag
impl RefUnwindSafe for DiagnosticTag
impl Send for DiagnosticTag
impl Sync for DiagnosticTag
impl Unpin for DiagnosticTag
impl UnsafeUnpin for DiagnosticTag
impl UnwindSafe for DiagnosticTag
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