pub trait Classifier<I: ?Sized, O>: Send + Sync {
// Required method
fn classify(&self, input: &I) -> O;
}Expand description
The canonical typed-input classifier. Implementations map an
opaque input &I to a typed output O deterministically.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".