pub trait DiagnosticSink {
// Required method
fn push(&mut self, diag: &Diagnostic);
// Provided method
fn push_all<'a>(&mut self, iter: impl Iterator<Item = &'a Diagnostic>) { ... }
}
Required Methods§
fn push(&mut self, diag: &Diagnostic)
Provided Methods§
fn push_all<'a>(&mut self, iter: impl Iterator<Item = &'a Diagnostic>)
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.