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 Iterator<Item = Diagnostic<'_>> + DoubleEndedIterator + ExactSizeIterator
sourcepub fn to_string_no_color(&self) -> String
pub fn to_string_no_color(&self) -> String
Returns a human-readable string formatting, without color codes regardless of stderr.
Display
and .to_string()
are meant for printing to stderr,
and will include ANSI color codes if stderr is detected to be a terminal.
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
Auto Trait Implementations§
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