pub enum LspDiagnosticCode {
String(String),
Number(i32),
}Expand description
LSP diagnostic code structure.
Variants§
Trait Implementations§
Source§impl Clone for LspDiagnosticCode
impl Clone for LspDiagnosticCode
Source§fn clone(&self) -> LspDiagnosticCode
fn clone(&self) -> LspDiagnosticCode
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 moreSource§impl Debug for LspDiagnosticCode
impl Debug for LspDiagnosticCode
Source§impl<'de> Deserialize<'de> for LspDiagnosticCode
impl<'de> Deserialize<'de> for LspDiagnosticCode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for LspDiagnosticCode
Source§impl PartialEq for LspDiagnosticCode
impl PartialEq for LspDiagnosticCode
Source§fn eq(&self, other: &LspDiagnosticCode) -> bool
fn eq(&self, other: &LspDiagnosticCode) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LspDiagnosticCode
impl Serialize for LspDiagnosticCode
impl StructuralPartialEq for LspDiagnosticCode
Auto Trait Implementations§
impl Freeze for LspDiagnosticCode
impl RefUnwindSafe for LspDiagnosticCode
impl Send for LspDiagnosticCode
impl Sync for LspDiagnosticCode
impl Unpin for LspDiagnosticCode
impl UnsafeUnpin for LspDiagnosticCode
impl UnwindSafe for LspDiagnosticCode
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