pub trait FstApplier: Send + Sync {
// Required methods
fn apply(&self, fst: &FstMap) -> Vec<u64>;
fn memory_usage(&self) -> usize;
}
Expand description
A trait for objects that can process a finite state transducer (FstMap) and return associated values.
Required Methods§
Sourcefn apply(&self, fst: &FstMap) -> Vec<u64>
fn apply(&self, fst: &FstMap) -> Vec<u64>
Retrieves values from an FstMap.
fst
: A reference to the FstMap from which the values will be fetched.
Returns a Vec<u64>
, with each u64 being a value from the FstMap.
Sourcefn memory_usage(&self) -> usize
fn memory_usage(&self) -> usize
Returns the memory usage of the applier.
Implementors§
impl FstApplier for IntersectionFstApplier
impl FstApplier for KeysFstApplier
impl FstApplier for MockFstApplier
A trait for objects that can process a finite state transducer (FstMap) and return associated values.