Trait rustfst::algorithms::lazy::SerializableLazyFst

source ·
pub trait SerializableLazyFst {
    // Required method
    fn write<P: AsRef<Path>>(&self, cache_dir: P, op_state_dir: P) -> Result<()>;
}

Required Methods§

source

fn write<P: AsRef<Path>>(&self, cache_dir: P, op_state_dir: P) -> Result<()>

Writes LazyFst interal states to a directory of files in binary format.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<C: SerializableLazyFst, CP: Deref<Target = C> + Debug> SerializableLazyFst for CP

source§

impl<W, F1, F2, B1, B2, M1, M2, CFB, Cache> SerializableLazyFst for ComposeFst<W, F1, F2, B1, B2, M1, M2, CFB, Cache>
where W: SerializableSemiring, F1: Fst<W>, F2: Fst<W>, B1: Borrow<F1> + Debug + Clone, B2: Borrow<F2> + Debug + Clone, Cache: FstCache<W> + SerializableCache, M1: Matcher<W, F1, B1>, M2: Matcher<W, F2, B2>, CFB: ComposeFilterBuilder<W, F1, F2, B1, B2, M1, M2>, <CFB::CF as ComposeFilter<W, F1, F2, B1, B2, CFB::IM1, CFB::IM2>>::FS: SerializeBinary,

source§

impl<W, Op, Cache> SerializableLazyFst for LazyFst<W, Op, Cache>