Skip to main content

FactExtractor

Trait FactExtractor 

Source
pub trait FactExtractor: Send + Sync {
    // Required method
    fn extract(&self, content: &str, kind: &str) -> Option<Vec<ExtractedFact>>;
}
Expand description

Sync, no-IO extractor (heuristic). Safe to call anywhere.

Required Methods§

Source

fn extract(&self, content: &str, kind: &str) -> Option<Vec<ExtractedFact>>

Return None to defer to the inner backend with the raw payload.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§