pub struct LintViolation {
pub code: LintCode,
pub severity: Severity,
pub subject: String,
pub message: String,
pub line: Option<usize>,
}Expand description
One lint finding: its code, how hard it lands, and the node it is against.
Fields§
§code: LintCode§severity: Severity§subject: String§message: String§line: Option<usize>Trait Implementations§
Auto Trait Implementations§
impl Freeze for LintViolation
impl RefUnwindSafe for LintViolation
impl Send for LintViolation
impl Sync for LintViolation
impl Unpin for LintViolation
impl UnsafeUnpin for LintViolation
impl UnwindSafe for LintViolation
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