pub trait Observer {
// Required method
fn event(&mut self, event: Event<'_>);
}Expand description
Receives per-rule and per-pass events. With no observer the cost is one predictable branch per event.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".