Struct apollo_compiler::Diagnostics
source · pub struct Diagnostics(/* private fields */);
Expand description
A collection of diagnostics returned by some validation method
Implementations§
source§impl Diagnostics
impl Diagnostics
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 Diagnostics
impl Debug for Diagnostics
Auto Trait Implementations§
impl RefUnwindSafe for Diagnostics
impl Send for Diagnostics
impl Sync for Diagnostics
impl Unpin 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