Skip to main content

Detector

Trait Detector 

Source
pub trait Detector: Send + Sync {
    // Required methods
    fn name(&self) -> &'static str;
    fn detect(&self, input: &str) -> Option<DetectionResult>;
}

Required Methods§

Source

fn name(&self) -> &'static str

Source

fn detect(&self, input: &str) -> Option<DetectionResult>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§