Skip to main content

PathIterExt

Trait PathIterExt 

Source
pub trait PathIterExt<W: Semiring>: Fst<W> {
    // Required methods
    fn paths_iter(&self) -> PathsIterator<'_, W, Self> 
       where Self: Sized;
    fn string_paths_iter<'a>(
        &'a self,
        input_symbols: Option<&'a SymbolTable>,
        output_symbols: Option<&'a SymbolTable>,
    ) -> StringPathsIterator<'a, W, Self> 
       where Self: Sized;
}
Expand description

Extension trait for FSTs to provide path iteration

Required Methods§

Source

fn paths_iter(&self) -> PathsIterator<'_, W, Self>
where Self: Sized,

Iterate over all accepting paths

Source

fn string_paths_iter<'a>( &'a self, input_symbols: Option<&'a SymbolTable>, output_symbols: Option<&'a SymbolTable>, ) -> StringPathsIterator<'a, W, Self>
where Self: Sized,

Iterate over paths with string representations

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<W: Semiring, F: Fst<W>> PathIterExt<W> for F