Skip to main content

Report

Trait Report 

Source
pub trait Report<W>: Spanned {
    // Required method
    fn report(&self, reporter: &mut Reporter<'_, W>) -> Result<()>;
}
Expand description

A Report Trait

Required Methods§

Source

fn report(&self, reporter: &mut Reporter<'_, W>) -> Result<()>

Report to the reporter

Trait Implementations§

Source§

impl<E, W> From<E> for Box<dyn Report<W>>
where E: Report<W> + Debug + 'static,

Source§

fn from(err: E) -> Self

Converts to this type from the input type.
Source§

impl<W> Report<W> for Box<dyn Report<W>>

Source§

fn report(&self, reporter: &mut Reporter<'_, W>) -> Result<()>

Report to the reporter
Source§

impl<W> Spanned for Box<dyn Report<W>>

Source§

fn span(&self) -> Span

Returns a Span.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<W> Report<W> for Box<dyn Report<W>>

Source§

fn report(&self, reporter: &mut Reporter<'_, W>) -> Result<()>

Implementors§