pub struct Diagnostic {
pub severity: Severity,
pub span: Span,
pub message: String,
pub help: Vec<String>,
pub notes: Vec<(Span, String)>,
}Fields§
§severity: Severity§span: Span§message: String§help: Vec<String>Unanchored hint blocks rendered after the primary, before notes. Span-anchored secondaries go in notes.
notes: Vec<(Span, String)>Trait Implementations§
Source§impl Clone for Diagnostic
impl Clone for Diagnostic
Source§impl Debug for Diagnostic
impl Debug for Diagnostic
impl Eq for Diagnostic
Source§impl<'a> From<&'a Diagnostic> for DiagnosticView<'a>
impl<'a> From<&'a Diagnostic> for DiagnosticView<'a>
Source§fn from(value: &'a Diagnostic) -> Self
fn from(value: &'a Diagnostic) -> Self
Converts to this type from the input type.
Source§impl PartialEq for Diagnostic
impl PartialEq for Diagnostic
impl StructuralPartialEq for Diagnostic
Auto Trait Implementations§
impl Freeze for Diagnostic
impl RefUnwindSafe for Diagnostic
impl Send for Diagnostic
impl Sync for Diagnostic
impl Unpin for Diagnostic
impl UnsafeUnpin for Diagnostic
impl UnwindSafe for Diagnostic
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.