Traceback

Trait Traceback 

Source
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§

Source

fn message(&self) -> String

Source

fn with(&self, caller: Caller) -> Self

Source

fn callers(&self) -> Vec<Caller>

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.

Implementors§