Skip to main content

Report

Trait Report 

Source
pub trait Report {
    // Required methods
    fn die(&self) -> !;
    fn report(&self);
}
Expand description

A trait for reporting errors to the user in a pretty format

Required Methods§

Source

fn die(&self) -> !

Prints the error to stderr and exits with a non-zero code

Source

fn report(&self)

Prints the error to stderr

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Report for Error

Source§

fn report(&self)

Source§

fn die(&self) -> !

Implementors§