pub trait DiagnosticFor {
    fn with_diagnostic<R, F: FnMut(&dyn Diagnostic) -> R>(&self, f: F) -> R;
}
Expand description

When implemented enables requesting Diagnostics for the implementer.

Required Methods§

Calls the specified function f with an instance of a Diagnostic. This can be used to perform lazy diagnostic evaluation.

Implementors§