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§
Sourcefn create_engine_with_case(
&self,
query: &str,
case: CaseMatching,
) -> Box<dyn MatchEngine>
fn create_engine_with_case( &self, query: &str, case: CaseMatching, ) -> Box<dyn MatchEngine>
Creates a match engine with explicit case sensitivity
Provided Methods§
Sourcefn create_engine(&self, query: &str) -> Box<dyn MatchEngine>
fn create_engine(&self, query: &str) -> Box<dyn MatchEngine>
Creates a match engine with default case sensitivity