pub struct Diagnostic {
pub rule: &'static str,
pub message: String,
pub line: usize,
pub col: usize,
}Expand description
A single lint violation produced by a Rule.
Fields§
§rule: &'static str§message: String§line: usize1-indexed line number
col: usize1-indexed column of the violation
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