pub struct DiagnosticRenderer<'a> { /* private fields */ }Expand description
Render diagnostics to a writer.
Implementations§
Source§impl<'a> DiagnosticRenderer<'a>
impl<'a> DiagnosticRenderer<'a>
Sourcepub fn without_colors(self) -> Self
pub fn without_colors(self) -> Self
Disable colors.
Sourcepub fn render(&self, diagnostic: &Diagnostic, w: &mut impl Write) -> Result<()>
pub fn render(&self, diagnostic: &Diagnostic, w: &mut impl Write) -> Result<()>
Render a diagnostic to the given writer.
Sourcepub fn render_all(&self, diagnostics: &[Diagnostic])
pub fn render_all(&self, diagnostics: &[Diagnostic])
Render all diagnostics to stderr.
Auto Trait Implementations§
impl<'a> Freeze for DiagnosticRenderer<'a>
impl<'a> RefUnwindSafe for DiagnosticRenderer<'a>
impl<'a> Send for DiagnosticRenderer<'a>
impl<'a> Sync for DiagnosticRenderer<'a>
impl<'a> Unpin for DiagnosticRenderer<'a>
impl<'a> UnsafeUnpin for DiagnosticRenderer<'a>
impl<'a> UnwindSafe for DiagnosticRenderer<'a>
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