Trait lazy_panic::formatter::PanicFormat
[−]
[src]
pub trait PanicFormat { type Writer: Write; type Backtrace: Backtrace; type Prefix: Prefix; type PanicInfo: PanicInfo; type Suffix: Suffix; fn writer() -> Self::Writer; fn print(info: &PanicInfo) { ... } }
Panic formatter
Default print method writes each component in following order:
- Backtrace
- Prefix
PanicInfo
- Suffix
Associated Types
type Writer: Write
type Backtrace: Backtrace
type Prefix: Prefix
type PanicInfo: PanicInfo
type Suffix: Suffix
Required Methods
Provided Methods
Implementors
impl PanicFormat for Simple type Writer = BufWriter<Stderr>; type Backtrace = Self; type Prefix = Self; type PanicInfo = Self; type Suffix = Self;
impl PanicFormat for Empty type Writer = Stderr; type Backtrace = Self; type Prefix = Self; type PanicInfo = Self; type Suffix = Self;
impl PanicFormat for Debug type Writer = BufWriter<Stderr>; type Prefix = Simple; type PanicInfo = Simple; type Suffix = Simple; type Backtrace = Self;