Struct apollo_compiler::DiagnosticList
source · pub struct DiagnosticList(/* private fields */);
Expand description
A collection of diagnostics returned by some validation method
Implementations§
source§impl DiagnosticList
impl DiagnosticList
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 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