pub trait Handler<T> {
// Required methods
fn receive<E: Into<T>>(&self, error: E);
fn has_received(&self) -> bool;
}Expand description
Represents a trait responsible for handling diagnostics in the interpreter.
Required Methods§
Sourcefn has_received(&self) -> bool
fn has_received(&self) -> bool
Returns whether the handler has received any error.
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.