pub struct Diagnostics { /* private fields */ }Expand description
Collects diagnostics produced by one compilation.
Implementations§
Source§impl Diagnostics
impl Diagnostics
pub fn new() -> Self
pub fn push(&mut self, diagnostic: Diagnostic)
pub fn extend(&mut self, other: impl IntoIterator<Item = Diagnostic>)
pub fn has_errors(&self) -> bool
pub fn is_empty(&self) -> bool
pub fn iter(&self) -> impl Iterator<Item = &Diagnostic>
pub fn into_vec(self) -> Vec<Diagnostic>
Trait Implementations§
Source§impl Default for Diagnostics
impl Default for Diagnostics
Source§fn default() -> Diagnostics
fn default() -> Diagnostics
Returns the “default value” for a type. Read more
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