pub struct Diagnostic {
pub severity: Severity,
pub slug: &'static str,
pub summary: String,
pub span: Span,
pub fn_name: Option<String>,
pub intent: Option<String>,
pub fields: Vec<(&'static str, String)>,
pub conflict: Option<String>,
pub repair: Repair,
pub regions: Vec<AnnotatedRegion>,
pub related: Vec<RelatedSpan>,
pub from_hostile: bool,
}Fields§
§severity: Severity§slug: &'static str§summary: String§span: Span§fn_name: Option<String>§intent: Option<String>§fields: Vec<(&'static str, String)>§conflict: Option<String>§repair: Repair§regions: Vec<AnnotatedRegion>§from_hostile: booltrue when this diagnostic was raised by a case aver verify --hostile injected through boundary-value expansion (a binding
the user did not write in the law’s given clause). Lets tooling
(CI dashboards, IDE filters, LSP code actions) cleanly separate
“the law I already had stopped passing” from “hostile expansion
found a boundary value that breaks it”. Default false; only
the hostile-aware verify pipeline sets it.
Implementations§
Source§impl Diagnostic
impl Diagnostic
Trait Implementations§
Source§impl Clone for Diagnostic
impl Clone for Diagnostic
Source§fn clone(&self) -> Diagnostic
fn clone(&self) -> Diagnostic
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 Diagnostic
impl Debug 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