pub struct Diagnostic {
pub severity: Severity,
pub file: String,
pub pos: Pos,
pub message: String,
pub note: Option<String>,
}Expand description
A problem found in a source, with the name of the file it was found in. It is an error unless it is made as a warning.
Fields§
§severity: SeverityWhether it is an error or a warning.
file: StringThe name of the file, as it is shown.
pos: PosWhere in the file it was found.
message: StringWhat the problem is.
note: Option<String>Extra information, such as where a duplicated name was first declared.
Implementations§
Trait Implementations§
Source§impl Clone for Diagnostic
impl Clone for Diagnostic
Source§impl Debug for Diagnostic
impl Debug for Diagnostic
Source§impl Display for Diagnostic
impl Display for Diagnostic
impl Eq for Diagnostic
Source§impl PartialEq for Diagnostic
impl PartialEq for Diagnostic
impl StructuralPartialEq for Diagnostic
Auto Trait Implementations§
impl Forget for Diagnostic
impl Freeze for Diagnostic
impl Move for Diagnostic
impl RefUnwindSafe for Diagnostic
impl Send for Diagnosticwhere
RawVecInner: Send,
impl Sync for Diagnosticwhere
RawVecInner: Sync,
impl Unpin for Diagnostic
impl UnsafeUnpin for Diagnostic
impl UnwindSafe for Diagnosticwhere
RawVecInner: UnwindSafe,
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