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§
fn message(&self) -> &str
fn reason(&self) -> &str
fn span(&self) -> Span
fn contexts(&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.