1 2 3 4 5 6 7 8 9 10 11 12
use matcher::MatcherFactory; use matcher::trie::SuffixTree; pub struct TrieMatcherFactory; impl MatcherFactory for TrieMatcherFactory { type Matcher = SuffixTree; fn new_matcher() -> Self::Matcher { SuffixTree::new() } }