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§
Source§impl ErrorLogPrinter
impl ErrorLogPrinter
Sourcepub fn disable_colors(&mut self) -> &mut Self
pub fn disable_colors(&mut self) -> &mut Self
Controls whether colors should be used in the error log.
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