pub trait PanicFormat {
type Writer: Write;
type Backtrace: Backtrace;
type Prefix: Prefix;
type PanicInfo: PanicInfo;
type Suffix: Suffix;
// Required method
fn writer() -> Self::Writer;
// Provided method
fn print(info: &PanicInfo<'_>) { ... }
}
Expand description
Panic formatter
Default print method writes each component in following order:
- Backtrace
- Prefix
PanicInfo
- Suffix
Required Associated Types§
type Writer: Write
type Backtrace: Backtrace
type Prefix: Prefix
type PanicInfo: PanicInfo
type Suffix: Suffix
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.