Trait tardar::IteratorExt

source ·
pub trait IteratorExt: Iterator + Sized {
    // Required method
    fn into_non_error_diagnostic<'d>(self) -> DiagnosticResult<'d, ()>
       where Self: Iterator<Item = BoxedDiagnostic<'d>>;
}
Expand description

Extension methods for Iterators.

Required Methods§

source

fn into_non_error_diagnostic<'d>(self) -> DiagnosticResult<'d, ()>where Self: Iterator<Item = BoxedDiagnostic<'d>>,

Converts from a type that implements Iterator<Item = BoxedDiagnostic<'d>> into DiagnosticResult<'d, ()>.

The Diagnostic items of the iterator are interpreted as non-errors. Note that the Severity is not examined and so the Diagnostics may have error-level severities despite being interpreted as non-errors.

Implementors§

source§

impl<I> IteratorExt for Iwhere I: Iterator,