pub trait Diagnostic: Debug {
// Required methods
fn is_error(&self) -> bool;
fn as_report<'a>(&'a self, source: &'a str, path: &'a str) -> Vec<Group<'a>>;
}Required Methods§
fn is_error(&self) -> bool
fn as_report<'a>(&'a self, source: &'a str, path: &'a str) -> Vec<Group<'a>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".