pub struct LintResult {
pub diagnostics: Vec<Diagnostic>,
}Expand description
Result of a lint pass — diagnostics without source modification.
Fields§
§diagnostics: Vec<Diagnostic>Implementations§
Source§impl LintResult
impl LintResult
pub fn is_clean(&self) -> bool
pub fn error_count(&self) -> usize
pub fn warn_count(&self) -> usize
Trait Implementations§
Source§impl Debug for LintResult
impl Debug for LintResult
Source§impl Default for LintResult
impl Default for LintResult
Source§fn default() -> LintResult
fn default() -> LintResult
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LintResult
impl RefUnwindSafe for LintResult
impl Send for LintResult
impl Sync for LintResult
impl Unpin for LintResult
impl UnsafeUnpin for LintResult
impl UnwindSafe for LintResult
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