MatchEngineFactory

Trait MatchEngineFactory 

Source
pub trait MatchEngineFactory {
    // Required method
    fn create_engine_with_case(
        &self,
        query: &str,
        case: CaseMatching,
    ) -> Box<dyn MatchEngine>;

    // Provided method
    fn create_engine(&self, query: &str) -> Box<dyn MatchEngine> { ... }
}
Expand description

Factory for creating match engines

Required Methods§

Source

fn create_engine_with_case( &self, query: &str, case: CaseMatching, ) -> Box<dyn MatchEngine>

Creates a match engine with explicit case sensitivity

Provided Methods§

Source

fn create_engine(&self, query: &str) -> Box<dyn MatchEngine>

Creates a match engine with default case sensitivity

Implementors§