@@ -6,9 +6,7 @@ use text_compression::{ProteinText, ProteinTextBackend, ProteinTextSlice};
66use crate :: {
77 KmerTable , Nullable , array:: SuffixArrayBackend ,
88 sa_searcher:: BoundSearch :: { Maximum , Minimum } ,
9- suffix_to_protein_index:: {
10- SuffixToProteinMappingBackend , SuffixToProteinMapping ,
11- } ,
9+ suffix_to_protein_index:: { SuffixToProteinMapping , SuffixToProteinMappingBackend } ,
1210} ;
1311
1412
@@ -76,18 +74,18 @@ impl PartialEq for SearchAllSuffixesResult {
7674/// taxonomic analysis provided by Unipept
7775/// * `function_aggregator` - Object used to retrieve the functional annotations and to calculate
7876/// the functional analysis provided by Unipept
79- pub struct Searcher < SA : SuffixArrayBackend , STPM : SuffixToProteinMappingBackend = SuffixToProteinMapping > {
77+ pub struct Searcher < SA : SuffixArrayBackend > {
8078 pub sa : SA ,
8179 pub proteins : Proteins ,
82- pub suffix_index_to_protein : STPM ,
80+ pub suffix_index_to_protein : SuffixToProteinMapping ,
8381 pub kmer_table : Option < KmerTable > ,
8482 /// Total nanoseconds spent inside `search_bounds()` across all queries (since last drain).
8583 pub search_bounds_ns : AtomicU64 ,
8684 /// Total nanoseconds spent iterating matches in `search_matching_suffixes()` (since last drain).
8785 pub match_iter_ns : AtomicU64 ,
8886}
8987
90- impl < SA : SuffixArrayBackend , STPM : SuffixToProteinMappingBackend > Searcher < SA , STPM > {
88+ impl < SA : SuffixArrayBackend > Searcher < SA > {
9189 /// Creates a new Searcher object
9290 ///
9391 /// # Arguments
@@ -104,7 +102,7 @@ impl<SA: SuffixArrayBackend, STPM: SuffixToProteinMappingBackend> Searcher<SA, S
104102 /// # Returns
105103 ///
106104 /// Returns a new Searcher object
107- pub fn new ( sa : SA , proteins : Proteins , suffix_index_to_protein : STPM ) -> Self {
105+ pub fn new ( sa : SA , proteins : Proteins , suffix_index_to_protein : SuffixToProteinMapping ) -> Self {
108106 Self {
109107 sa,
110108 proteins,
0 commit comments