pub struct Diagnostic {
pub lint: Lint,
pub level: Level,
pub file: PathBuf,
pub line: usize,
pub column: usize,
pub end_column: usize,
pub message: String,
pub help: String,
pub snippet: String,
}Expand description
One broken rule at one place in a source file.
Fields§
§lint: LintThe rule.
level: LevelHow it is reported, after the configuration.
file: PathBufThe file, as given to the check.
line: usizeLine, from 1.
column: usizeColumn of the first character, from 1.
end_column: usizeColumn after the last character on the same line, from 1.
message: StringWhat is wrong.
help: StringHow to fix it.
snippet: StringThe text of the line, for showing it.
Trait Implementations§
Source§impl Clone for Diagnostic
impl Clone for Diagnostic
Source§fn clone(&self) -> Diagnostic
fn clone(&self) -> Diagnostic
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Diagnostic
impl Debug for Diagnostic
Source§impl PartialEq for Diagnostic
impl PartialEq for Diagnostic
impl StructuralPartialEq for Diagnostic
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