Struct litcheck_core::diagnostics::reporting::PrintDiagnostic
source · 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
D: RefUnwindSafe,
R: 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
D: UnwindSafe,
R: 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