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:

  1. Backtrace
  2. Prefix
  3. PanicInfo
  4. Suffix

Associated Types

Required Methods

Provided Methods

Implementors