pub enum DiagnosticTag {
Unnecessary,
Deprecated,
}Expand description
Diagnostic tags for additional classification.
Variants§
Unnecessary
Code that can be safely removed (unused variables, imports).
Deprecated
Code using deprecated features.
Implementations§
Source§impl DiagnosticTag
impl DiagnosticTag
Sourcepub fn to_lsp_value(self) -> u8
pub fn to_lsp_value(self) -> u8
Get the LSP numeric value for this tag.
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 · 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 DiagnosticTag
impl Debug for DiagnosticTag
Source§impl Hash for DiagnosticTag
impl Hash for DiagnosticTag
Source§impl PartialEq for DiagnosticTag
impl PartialEq for DiagnosticTag
impl Copy for DiagnosticTag
impl Eq 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