pub struct Report {
pub diagnostics: Vec<Diagnostic>,
}Expand description
A collection of diagnostics with convenience queries.
Fields§
§diagnostics: Vec<Diagnostic>Implementations§
Source§impl Report
impl Report
pub fn push(&mut self, d: Diagnostic)
pub fn extend(&mut self, other: Report)
pub fn is_empty(&self) -> bool
pub fn len(&self) -> usize
pub fn count(&self, severity: Severity) -> usize
Sourcepub fn has_errors(&self) -> bool
pub fn has_errors(&self) -> bool
Whether any diagnostic is an error, i.e. the model is non-conforming.
pub fn iter(&self) -> Iter<'_, Diagnostic> ⓘ
pub fn by_rule(&self, rule: Rule) -> impl Iterator<Item = &Diagnostic>
Trait Implementations§
Auto Trait Implementations§
impl Forget for Report
impl Freeze for Report
impl Move for Report
impl RefUnwindSafe for Report
impl Send for Report
impl Sync for Report
impl Unpin for Report
impl UnsafeUnpin for Report
impl UnwindSafe for Report
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