pub struct Diagnostics(/* private fields */);Expand description
All findings for one file, in discovery order.
Implementations§
Source§impl Diagnostics
impl Diagnostics
pub fn new() -> Self
pub fn push(&mut self, diagnostic: Diagnostic)
pub fn error( &mut self, code: ErrorCode, path: impl Into<String>, message: impl Into<String>, )
pub fn warning( &mut self, code: ErrorCode, path: impl Into<String>, message: impl Into<String>, )
pub fn errors(&self) -> impl Iterator<Item = &Diagnostic>
pub fn warnings(&self) -> impl Iterator<Item = &Diagnostic>
pub fn iter(&self) -> impl Iterator<Item = &Diagnostic>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn into_vec(self) -> Vec<Diagnostic>
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 IntoIterator for Diagnostics
impl IntoIterator for Diagnostics
Source§impl PartialEq for Diagnostics
impl PartialEq for Diagnostics
impl StructuralPartialEq for Diagnostics
Auto Trait Implementations§
impl Forget for Diagnostics
impl Freeze for Diagnostics
impl Move for Diagnostics
impl RefUnwindSafe for Diagnostics
impl Send for Diagnosticswhere
RawVecInner: Send,
impl Sync for Diagnosticswhere
RawVecInner: Sync,
impl Unpin for Diagnostics
impl UnsafeUnpin for Diagnostics
impl UnwindSafe for Diagnosticswhere
RawVecInner: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.