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§
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)
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.