pub struct Diag {
pub code: &'static str,
pub severity: Severity,
pub message: String,
pub source_name: Option<String>,
pub source_text: Option<Arc<str>>,
pub span: Option<Span>,
pub help: Option<String>,
}Expand description
One structured, source-located finding.
Fields§
§code: &'static strStable, greppable code (proef::pack::…, proef::feature::…, …).
severity: SeveritySeverity.
message: StringHuman-readable message.
source_name: Option<String>Name of the source this points into (file path as authored), if any.
source_text: Option<Arc<str>>The (normalized) source text, shared across diags of one file.
span: Option<Span>Labeled byte region within source_text.
help: Option<String>Remediation hint.
Implementations§
Trait Implementations§
impl Eq for Diag
impl StructuralPartialEq for Diag
Auto Trait Implementations§
impl Freeze for Diag
impl RefUnwindSafe for Diag
impl Send for Diag
impl Sync for Diag
impl Unpin for Diag
impl UnsafeUnpin for Diag
impl UnwindSafe for Diag
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§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.