Skip to main content

Report

Trait Report 

Source
pub trait Report {
    // Required methods
    fn message(&self) -> &str;
    fn reason(&self) -> &str;
    fn span(&self) -> Span;
    fn contexts(&self) -> impl Iterator<Item = (&str, Span)>;
    fn related(&self) -> impl Iterator<Item = (&str, Span)>;
}

Required Methods§

Source

fn message(&self) -> &str

Source

fn reason(&self) -> &str

Source

fn span(&self) -> Span

Source

fn contexts(&self) -> impl Iterator<Item = (&str, Span)>

Source

fn related(&self) -> impl Iterator<Item = (&str, Span)>

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§