Struct rustfix::diagnostics::Diagnostic [−][src]
Fields
message: String
The primary error message.
code: Option<DiagnosticCode>
spans: Vec<DiagnosticSpan>
children: Vec<Diagnostic>
Associated diagnostic messages.
rendered: Option<String>
The message as rustc would render it. Currently this is only
Some
for “suggestions”, but eventually it will include all
snippets.
Trait Implementations
impl Clone for Diagnostic
[src][+]
impl Debug for Diagnostic
[src][+]
impl<'de> Deserialize<'de> for Diagnostic
[src][+]
impl Eq for Diagnostic
[src]
impl Hash for Diagnostic
[src][+]
impl PartialEq<Diagnostic> for Diagnostic
[src][+]
impl StructuralEq for Diagnostic
[src]
impl StructuralPartialEq for Diagnostic
[src]
Auto Trait Implementations
impl RefUnwindSafe for Diagnostic
impl Send for Diagnostic
impl Sync for Diagnostic
impl Unpin for Diagnostic
impl UnwindSafe for Diagnostic
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,