pub trait Callback<'a> {
// Required method
fn on_match(&mut self, matched: &str) -> bool;
// Provided methods
fn on_finish(&mut self) -> bool { ... }
fn push_index(&mut self) { ... }
fn bump_index(&mut self) { ... }
fn pop_index(&mut self) { ... }
fn push_key(&mut self) { ... }
fn set_key(&mut self, _key: Cow<'a, str>) { ... }
fn pop_key(&mut self) { ... }
}Required Methods§
Provided Methods§
fn on_finish(&mut self) -> bool
fn push_index(&mut self)
fn bump_index(&mut self)
fn pop_index(&mut self)
fn push_key(&mut self)
fn set_key(&mut self, _key: Cow<'a, str>)
fn pop_key(&mut self)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".