pub struct Diagnostics(/* private fields */);Expand description
The errors a frontend or validator reported, in the order reported.
Implementations§
Source§impl Diagnostics
impl Diagnostics
Sourcepub fn push(&mut self, d: Diagnostic)
pub fn push(&mut self, d: Diagnostic)
Appends d.
Sourcepub fn iter(&self) -> Iter<'_, Diagnostic> ⓘ
pub fn iter(&self) -> Iter<'_, Diagnostic> ⓘ
The diagnostics, in the order reported.
Sourcepub fn has_class(&self, class: ErrorClass) -> bool
pub fn has_class(&self, class: ErrorClass) -> bool
Some diagnostic’s kind is of class class.
Sourcepub fn into_vec(self) -> Vec<Diagnostic>
pub fn into_vec(self) -> Vec<Diagnostic>
The diagnostics as a vector.
Trait Implementations§
Source§impl Clone for Diagnostics
impl Clone for Diagnostics
Source§impl Debug for Diagnostics
impl Debug for Diagnostics
Source§impl Default for Diagnostics
impl Default for Diagnostics
impl Eq for Diagnostics
Source§impl Extend<Diagnostic> for Diagnostics
impl Extend<Diagnostic> for Diagnostics
Source§fn extend<I: IntoIterator<Item = Diagnostic>>(&mut self, iter: I)
fn extend<I: IntoIterator<Item = Diagnostic>>(&mut self, iter: I)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: T)
fn extend_one(&mut self, item: T)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl From<Vec<Diagnostic>> for Diagnostics
impl From<Vec<Diagnostic>> for Diagnostics
Source§fn from(v: Vec<Diagnostic>) -> Self
fn from(v: Vec<Diagnostic>) -> Self
Converts to this type from the input type.
Source§impl Hash for Diagnostics
impl Hash for Diagnostics
Source§impl<'a> IntoIterator for &'a Diagnostics
impl<'a> IntoIterator for &'a Diagnostics
Source§impl PartialEq for Diagnostics
impl PartialEq for Diagnostics
impl StructuralPartialEq for Diagnostics
Auto Trait Implementations§
impl Freeze for Diagnostics
impl RefUnwindSafe for Diagnostics
impl Send for Diagnostics
impl Sync for Diagnostics
impl Unpin for Diagnostics
impl UnsafeUnpin for Diagnostics
impl UnwindSafe for Diagnostics
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