pub trait ConfigurableRecognizer: Recognizer {
type Config;
// Required method
fn from_config(config: Self::Config) -> Result<Self>
where Self: Sized;
}Expand description
Trait for recognizers that can be loaded from configuration
Required Associated Types§
Required Methods§
Sourcefn from_config(config: Self::Config) -> Result<Self>where
Self: Sized,
fn from_config(config: Self::Config) -> Result<Self>where
Self: Sized,
Create a new instance from configuration