Struct apollo_compiler::Diagnostics
source · pub struct Diagnostics(/* private fields */);
Implementations§
source§impl Diagnostics
impl Diagnostics
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