Trait DiagnosticSink

Source
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§

Source

fn push(&mut self, diag: &Diagnostic)

Provided Methods§

Source

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.

Implementations on Foreign Types§

Source§

impl DiagnosticSink for Vec<Diagnostic>

Source§

fn push(&mut self, diag: &Diagnostic)

Source§

fn push_all<'a>(&mut self, iter: impl Iterator<Item = &'a Diagnostic>)

Implementors§