Trait Reporter

Source
pub trait Reporter: FileContextual {
    // Required method
    fn report(&mut self, report: Report);

    // Provided methods
    fn report_and_fail<R: Into<ReportMessage>, T>(
        &self,
        at: Vec<CodePoint>,
        message: R,
    ) -> Result<T, UnrecoverableError> { ... }
    fn add_report<R: Into<ReportMessage>>(
        &mut self,
        at: Vec<CodePoint>,
        message: R,
    ) { ... }
}

Required Methods§

Source

fn report(&mut self, report: Report)

Provided Methods§

Source

fn report_and_fail<R: Into<ReportMessage>, T>( &self, at: Vec<CodePoint>, message: R, ) -> Result<T, UnrecoverableError>

Source

fn add_report<R: Into<ReportMessage>>(&mut self, at: Vec<CodePoint>, message: R)

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§