pub struct StateSyncReport {
pub errors: Vec<LintError>,
pub files_analyzed: usize,
pub lines_analyzed: usize,
}Expand description
Report from linting one or more files
Fields§
§errors: Vec<LintError>All errors found
files_analyzed: usizeFiles analyzed
lines_analyzed: usizeLines analyzed
Implementations§
Source§impl StateSyncReport
impl StateSyncReport
Sourcepub fn has_errors(&self) -> bool
pub fn has_errors(&self) -> bool
Check if there are any errors
Sourcepub fn error_count(&self) -> usize
pub fn error_count(&self) -> usize
Count errors by severity
Sourcepub fn warning_count(&self) -> usize
pub fn warning_count(&self) -> usize
Count warnings
Trait Implementations§
Source§impl Debug for StateSyncReport
impl Debug for StateSyncReport
Source§impl Default for StateSyncReport
impl Default for StateSyncReport
Source§fn default() -> StateSyncReport
fn default() -> StateSyncReport
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StateSyncReport
impl RefUnwindSafe for StateSyncReport
impl Send for StateSyncReport
impl Sync for StateSyncReport
impl Unpin for StateSyncReport
impl UnsafeUnpin for StateSyncReport
impl UnwindSafe for StateSyncReport
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().