pub struct DiagnosticRenderer<'a> { /* private fields */ }Expand description
A source-aware, rustc-style diagnostic display adapter.
Implementations§
Source§impl<'a> DiagnosticRenderer<'a>
impl<'a> DiagnosticRenderer<'a>
Sourcepub const fn with_label(self, label: &'a str) -> DiagnosticRenderer<'a>
pub const fn with_label(self, label: &'a str) -> DiagnosticRenderer<'a>
Overrides the diagnostic phase label.
Sourcepub const fn with_source_name(
self,
source_name: &'a str,
) -> DiagnosticRenderer<'a>
pub const fn with_source_name( self, source_name: &'a str, ) -> DiagnosticRenderer<'a>
Sets the filename or logical input name shown in the location header.
Sourcepub const fn with_color(self, color: DiagnosticColor) -> DiagnosticRenderer<'a>
pub const fn with_color(self, color: DiagnosticColor) -> DiagnosticRenderer<'a>
Sets the ANSI color policy.
Trait Implementations§
Source§impl<'a> Clone for DiagnosticRenderer<'a>
impl<'a> Clone for DiagnosticRenderer<'a>
Source§fn clone(&self) -> DiagnosticRenderer<'a>
fn clone(&self) -> DiagnosticRenderer<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for DiagnosticRenderer<'a>
Source§impl<'a> Debug for DiagnosticRenderer<'a>
impl<'a> Debug for DiagnosticRenderer<'a>
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