pub enum DiagnosticSource {
Syntax,
Type,
}Expand description
What analysis layer produced a diagnostic — lets clients group/filter parse vs. type
diagnostics without parsing the code.
Variants§
Syntax
A lexer / parser / indentation diagnostic (Phase 1).
Type
A type / semantic diagnostic from inference (Phase 2).
Trait Implementations§
Source§impl Clone for DiagnosticSource
impl Clone for DiagnosticSource
Source§fn clone(&self) -> DiagnosticSource
fn clone(&self) -> DiagnosticSource
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 DiagnosticSource
Source§impl Debug for DiagnosticSource
impl Debug for DiagnosticSource
Source§impl Default for DiagnosticSource
impl Default for DiagnosticSource
Source§fn default() -> DiagnosticSource
fn default() -> DiagnosticSource
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DiagnosticSource
impl<'de> Deserialize<'de> for DiagnosticSource
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 DiagnosticSource
Source§impl PartialEq for DiagnosticSource
impl PartialEq for DiagnosticSource
Source§fn eq(&self, other: &DiagnosticSource) -> bool
fn eq(&self, other: &DiagnosticSource) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DiagnosticSource
impl Serialize for DiagnosticSource
impl StructuralPartialEq for DiagnosticSource
Auto Trait Implementations§
impl Freeze for DiagnosticSource
impl RefUnwindSafe for DiagnosticSource
impl Send for DiagnosticSource
impl Sync for DiagnosticSource
impl Unpin for DiagnosticSource
impl UnsafeUnpin for DiagnosticSource
impl UnwindSafe for DiagnosticSource
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