pub struct Diagnostic {
pub file: PathBuf,
pub line: usize,
pub column: usize,
pub message: String,
pub severity: Severity,
pub phase: Phase,
pub help: Vec<Help>,
}Expand description
A single diagnostic message with source location.
Fields§
§file: PathBuf§line: usize§column: usize§message: String§severity: Severity§phase: Phase§help: Vec<Help>Optional help blocks with suggested fixes. Empty by default — existing phases do not need to attach anything.
Implementations§
Trait Implementations§
Source§impl Clone for Diagnostic
impl Clone for Diagnostic
Source§impl Debug for Diagnostic
impl Debug for Diagnostic
Auto Trait Implementations§
impl Forget for Diagnostic
impl Freeze for Diagnostic
impl Move 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