pub trait StringClassifier: Send + Sync {
// Required methods
fn name(&self) -> &str;
fn classify(&self, input: &str) -> Vec<(StringCategory, f32)>;
}Expand description
A classifier that examines a string and returns matching categories.
Required Methods§
Trait Implementations§
impl Collect for &'static dyn StringClassifier
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".