Struct ptx_builder::reporter::ErrorLogPrinter
source · pub struct ErrorLogPrinter { /* private fields */ }
Expand description
Nice error log printer.
use std::process::exit;
use ptx_builder::prelude::*;
fn main() {
if let Err(error) = build() {
eprintln!("{}", ErrorLogPrinter::print(error));
exit(1);
}
}
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ErrorLogPrinter
impl RefUnwindSafe for ErrorLogPrinter
impl Send for ErrorLogPrinter
impl Sync for ErrorLogPrinter
impl Unpin for ErrorLogPrinter
impl UnwindSafe for ErrorLogPrinter
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