pub struct DiagnosticSet { /* private fields */ }Expand description
Collection of diagnostics.
Implementations§
Source§impl DiagnosticSet
impl DiagnosticSet
Sourcepub fn push(&mut self, diagnostic: Diagnostic)
pub fn push(&mut self, diagnostic: Diagnostic)
Adds a diagnostic.
Sourcepub fn all(&self) -> &[Diagnostic]
pub fn all(&self) -> &[Diagnostic]
Returns all diagnostics.
Sourcepub fn has_errors(&self) -> bool
pub fn has_errors(&self) -> bool
Returns true if at least one error diagnostic is present.
Trait Implementations§
Source§impl Clone for DiagnosticSet
impl Clone for DiagnosticSet
Source§fn clone(&self) -> DiagnosticSet
fn clone(&self) -> DiagnosticSet
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 DiagnosticSet
impl Debug for DiagnosticSet
Source§impl Default for DiagnosticSet
impl Default for DiagnosticSet
Source§fn default() -> DiagnosticSet
fn default() -> DiagnosticSet
Returns the “default value” for a type. Read more
impl Eq for DiagnosticSet
Source§impl From<Vec<Diagnostic>> for DiagnosticSet
impl From<Vec<Diagnostic>> for DiagnosticSet
Source§fn from(diagnostics: Vec<Diagnostic>) -> Self
fn from(diagnostics: Vec<Diagnostic>) -> Self
Converts to this type from the input type.
Source§impl IntoIterator for DiagnosticSet
impl IntoIterator for DiagnosticSet
Source§impl PartialEq for DiagnosticSet
impl PartialEq for DiagnosticSet
impl StructuralPartialEq for DiagnosticSet
Auto Trait Implementations§
impl Freeze for DiagnosticSet
impl RefUnwindSafe for DiagnosticSet
impl Send for DiagnosticSet
impl Sync for DiagnosticSet
impl Unpin for DiagnosticSet
impl UnsafeUnpin for DiagnosticSet
impl UnwindSafe for DiagnosticSet
Blanket Implementations§
impl<T> Allocation for T
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