pub trait TextNormalizer {
// Required method
fn normalize(&self, text: &str) -> Result<String>;
// Provided method
fn normalize_batch(&self, texts: &[&str]) -> Result<Vec<String>> { ... }
}Expand description
Trait for text normalization operations
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".