pub struct Diag {
pub line: usize,
pub col: usize,
pub end_line: usize,
pub end_col: usize,
pub severity: u8,
pub msg: String,
}Expand description
a diagnostic of a code editor: a part of the text in lines and columns from 1 as compilers report them (columns count characters, a tab is one; the end is exclusive, an end at or before the start marks the one character at the start, past a line’s end the end of the line), a severity DIAG_* and the message (see the module header)
Fields§
§line: usizewhere it starts (from 1)
col: usize§end_line: usizewhere it ends (exclusive)
end_col: usize§severity: u8DIAG_ERROR, DIAG_WARNING, DIAG_INFO
msg: StringImplementations§
Trait Implementations§
impl Eq for Diag
impl StructuralPartialEq for Diag
Auto Trait Implementations§
impl Forget for Diag
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