Skip to main content

FstApplier

Trait FstApplier 

Source
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§

Source

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.

Source

fn memory_usage(&self) -> usize

Returns the memory usage of the applier.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl FstApplier for IntersectionFstApplier

Source§

impl FstApplier for KeysFstApplier

Source§

impl FstApplier for MockFstApplier

A trait for objects that can process a finite state transducer (FstMap) and return associated values.