Struct diagnostics::IssueSet
source · pub struct IssueSet<T> { /* private fields */ }
Expand description
A collection of issues.
Implementations§
source§impl<T: Diagnostic> IssueSet<T>
impl<T: Diagnostic> IssueSet<T>
sourcepub fn has_error(&self) -> bool
pub fn has_error(&self) -> bool
Returns true
if this issue set contains an error.
Errors are determined by Diagnostic
s with a
(severity)Diagnostic::severity of Severity::Error
.
sourcepub fn num_errors(&self) -> usize
pub fn num_errors(&self) -> usize
The number of errors in this issue set.
sourcepub fn has_warning(&self) -> bool
pub fn has_warning(&self) -> bool
Returns true
if this issue set contains a warning.
Warnings are determined by Diagnostic
s with a
(severity)Diagnostic::severity of Severity::Warning
.
sourcepub fn num_warnings(&self) -> usize
pub fn num_warnings(&self) -> usize
The number of warnings in this issue set.
Trait Implementations§
Auto Trait Implementations§
impl<T> RefUnwindSafe for IssueSet<T>where
T: RefUnwindSafe,
impl<T> Send for IssueSet<T>where
T: Send,
impl<T> Sync for IssueSet<T>where
T: Sync,
impl<T> Unpin for IssueSet<T>where
T: Unpin,
impl<T> UnwindSafe for IssueSet<T>where
T: UnwindSafe,
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