pub struct LintReport {
pub errors: usize,
pub warnings: usize,
pub infos: usize,
pub hints: usize,
}Expand description
Aggregate counts grouped by diagnostic severity.
Fields§
§errors: usizeNumber of error diagnostics.
warnings: usizeNumber of warning diagnostics.
infos: usizeNumber of info diagnostics.
hints: usizeNumber of hint diagnostics.
Implementations§
Source§impl LintReport
impl LintReport
Sourcepub const fn has_errors(&self) -> bool
pub const fn has_errors(&self) -> bool
True when at least one error exists.
Sourcepub const fn has_non_error_issues(&self) -> bool
pub const fn has_non_error_issues(&self) -> bool
True when warnings, infos, or hints are present.
Trait Implementations§
Source§impl Clone for LintReport
impl Clone for LintReport
Source§fn clone(&self) -> LintReport
fn clone(&self) -> LintReport
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 LintReport
impl Debug for LintReport
Source§impl Default for LintReport
impl Default for LintReport
Source§fn default() -> LintReport
fn default() -> LintReport
Returns the “default value” for a type. Read more
Source§impl PartialEq for LintReport
impl PartialEq for LintReport
Source§fn eq(&self, other: &LintReport) -> bool
fn eq(&self, other: &LintReport) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for LintReport
impl StructuralPartialEq for LintReport
Auto Trait Implementations§
impl Freeze for LintReport
impl RefUnwindSafe for LintReport
impl Send for LintReport
impl Sync for LintReport
impl Unpin for LintReport
impl UnsafeUnpin for LintReport
impl UnwindSafe for LintReport
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.