lazy_panic::formatter

Trait Prefix

Source
pub trait Prefix {
    // Required method
    fn write_in<W: Write>(writer: &mut W) -> Result<()>;
}
Expand description

Describes how to write panic’s message prefix.

Generally should be simple prefix that will go as {Prefix}{PanicInfo}...

Required Methods§

Source

fn write_in<W: Write>(writer: &mut W) -> Result<()>

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.

Implementors§