Detector

Trait Detector 

Source
pub trait Detector: Send + Sync {
    type Context;
    type Detection;

    // Required methods
    fn detect(&self, context: &Self::Context) -> Vec<Self::Detection>;
    fn confidence(&self) -> f64;
}
Expand description

Detector trait for pattern detection

Required Associated Types§

Source

type Context

The context type this detector analyzes

Source

type Detection

The detection result type

Required Methods§

Source

fn detect(&self, context: &Self::Context) -> Vec<Self::Detection>

Detect patterns in the given context

Source

fn confidence(&self) -> f64

Get detector confidence level

Implementors§