pub struct LintDiagnostic {
pub code: LintCode,
pub severity: LintSeverity,
pub message: String,
pub range: Range<usize>,
}Expand description
One lint finding, located at a byte range into the linted source text.
Fields§
§code: LintCodeWhich rule fired.
severity: LintSeveritySeverity of the finding.
message: StringHuman-readable description of the problem.
range: Range<usize>Byte range of the offending source span.
Trait Implementations§
Source§impl Clone for LintDiagnostic
impl Clone for LintDiagnostic
Source§fn clone(&self) -> LintDiagnostic
fn clone(&self) -> LintDiagnostic
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 LintDiagnostic
impl Debug for LintDiagnostic
impl Eq for LintDiagnostic
Source§impl PartialEq for LintDiagnostic
impl PartialEq for LintDiagnostic
impl StructuralPartialEq for LintDiagnostic
Auto Trait Implementations§
impl Freeze for LintDiagnostic
impl RefUnwindSafe for LintDiagnostic
impl Send for LintDiagnostic
impl Sync for LintDiagnostic
impl Unpin for LintDiagnostic
impl UnsafeUnpin for LintDiagnostic
impl UnwindSafe for LintDiagnostic
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