pub trait TokenFilter: Send + Sync {
// Required method
fn apply(&self, token: String) -> Option<String>;
}Expand description
Transforms or drops a single token. Returns None to drop.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".