pub trait Traceback: Error {
// Required methods
fn message(&self) -> String;
fn with(&self, caller: Caller) -> Self;
fn callers(&self) -> Vec<Caller>;
// Provided methods
fn callers_to_string(&self, indent: usize) -> String { ... }
fn highlight_message(&self) -> String { ... }
fn previous_as_debug(&self) -> String { ... }
fn previous_as_string(&self) -> String { ... }
}Required Methods§
fn message(&self) -> String
fn with(&self, caller: Caller) -> Self
fn callers(&self) -> Vec<Caller>
Provided Methods§
fn callers_to_string(&self, indent: usize) -> String
fn highlight_message(&self) -> String
fn previous_as_debug(&self) -> String
fn previous_as_string(&self) -> String
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.