pub trait TextCleaner {
// Required method
fn clean(&self, text: &str) -> Result<String>;
// Provided method
fn clean_batch(&self, texts: &[&str]) -> Result<Vec<String>> { ... }
}Expand description
Trait for text cleaning operations