pub trait Handler<N, W> {
fn handle(&mut self, vocabulary: &N, warning: W);
}
Expand description
Warning handler.
This trait is implemented by the unit type ()
which ignores warnings.
You can use Print
or PrintWith
to print warnings on the standard
output or implement your own handler.
Handle a warning with the given vocabulary
.