pub trait TraceFormat: Trace {
    fn write_trace(&self, out: &mut dyn Write, error: &Error) -> Result<(), Error>;
    fn as_any(&self) -> &dyn Any;
    fn as_any_mut(&mut self) -> &mut dyn Any;

    fn format(&self, error: &Error) -> Result<String, Error> { ... }
}
Expand description

Implements pretty-printing of traces

Required Methods§

Provided Methods§

Implementors§