color_eyre::section

Trait PanicMessage

Source
pub trait PanicMessage:
    Send
    + Sync
    + 'static {
    // Required method
    fn display(&self, pi: &PanicInfo<'_>, f: &mut Formatter<'_>) -> Result;
}
Expand description

Trait for printing a panic error message for the given PanicInfo

Required Methods§

Source

fn display(&self, pi: &PanicInfo<'_>, f: &mut Formatter<'_>) -> Result

Display trait equivalent for implementing the display logic

Implementors§