pub struct PrintDiagnostic<D, R = DefaultReportHandler> { /* private fields */ }
Implementations§
Source§impl<D: AsRef<dyn Diagnostic>> PrintDiagnostic<D>
impl<D: AsRef<dyn Diagnostic>> PrintDiagnostic<D>
pub fn new(diag: D) -> Self
pub fn new_without_color(diag: D) -> Self
Source§impl<D: AsRef<dyn Diagnostic>> PrintDiagnostic<D, NarratableReportHandler>
impl<D: AsRef<dyn Diagnostic>> PrintDiagnostic<D, NarratableReportHandler>
Source§impl<D: AsRef<dyn Diagnostic>> PrintDiagnostic<D, JSONReportHandler>
impl<D: AsRef<dyn Diagnostic>> PrintDiagnostic<D, JSONReportHandler>
Trait Implementations§
Source§impl<D: AsRef<dyn Diagnostic>> Display for PrintDiagnostic<D>
impl<D: AsRef<dyn Diagnostic>> Display for PrintDiagnostic<D>
Source§impl<D: AsRef<dyn Diagnostic>> Display for PrintDiagnostic<D, JSONReportHandler>
impl<D: AsRef<dyn Diagnostic>> Display for PrintDiagnostic<D, JSONReportHandler>
Source§impl<D: AsRef<dyn Diagnostic>> Display for PrintDiagnostic<D, NarratableReportHandler>
impl<D: AsRef<dyn Diagnostic>> Display for PrintDiagnostic<D, NarratableReportHandler>
Auto Trait Implementations§
impl<D, R> Freeze for PrintDiagnostic<D, R>
impl<D, R> RefUnwindSafe for PrintDiagnostic<D, R>where
R: RefUnwindSafe,
D: RefUnwindSafe,
impl<D, R> Send for PrintDiagnostic<D, R>
impl<D, R> Sync for PrintDiagnostic<D, R>
impl<D, R> Unpin for PrintDiagnostic<D, R>
impl<D, R> UnwindSafe for PrintDiagnostic<D, R>where
R: UnwindSafe,
D: UnwindSafe,
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more