Skip to main content

SerializableLazyFst

Trait 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.

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