Struct apollo_compiler::validation::DiagnosticList
source · pub struct DiagnosticList { /* private fields */ }
Expand description
A collection of diagnostics returned by some validation method
Implementations§
source§impl DiagnosticList
impl DiagnosticList
sourcepub fn new(sources: SourceMap) -> Self
pub fn new(sources: SourceMap) -> Self
Creates an empty diagnostic list with the given source map.
pub fn is_empty(&self) -> bool
pub fn len(&self) -> usize
pub fn iter( &self ) -> impl DoubleEndedIterator<Item = Diagnostic<'_, DiagnosticData>> + ExactSizeIterator
Trait Implementations§
source§impl Clone for DiagnosticList
impl Clone for DiagnosticList
source§fn clone(&self) -> DiagnosticList
fn clone(&self) -> DiagnosticList
Returns a copy of the value. Read more
1.0.0 · 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 DiagnosticList
impl Debug for DiagnosticList
Use Display formatting to output without colors: format!("{diagnostics}")
Auto Trait Implementations§
impl Freeze for DiagnosticList
impl RefUnwindSafe for DiagnosticList
impl Send for DiagnosticList
impl Sync for DiagnosticList
impl Unpin for DiagnosticList
impl UnwindSafe for DiagnosticList
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