pub struct FileReportsDisp<'a, P> { /* private fields */ }Expand description
Pretty-printer for file reports.
Implementations§
Source§impl<'a, P> FileReportsDisp<'a, P>
impl<'a, P> FileReportsDisp<'a, P>
Sourcepub fn new(file_reports: &'a FileReports<P>) -> Self
pub fn new(file_reports: &'a FileReports<P>) -> Self
Construct a new pretty-printer for file reports.
By default, this does not apply any colors and does not print file paths.
Sourcepub fn with_paint(self, paint: Paint) -> Self
pub fn with_paint(self, paint: Paint) -> Self
Set a function that determines how colors should be applied to text.
Trait Implementations§
Auto Trait Implementations§
impl<'a, P> Freeze for FileReportsDisp<'a, P>
impl<'a, P> RefUnwindSafe for FileReportsDisp<'a, P>where
P: RefUnwindSafe,
impl<'a, P> Send for FileReportsDisp<'a, P>where
P: Sync,
impl<'a, P> Sync for FileReportsDisp<'a, P>where
P: Sync,
impl<'a, P> Unpin for FileReportsDisp<'a, P>
impl<'a, P> UnsafeUnpin for FileReportsDisp<'a, P>
impl<'a, P> UnwindSafe for FileReportsDisp<'a, P>where
P: RefUnwindSafe,
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