[][src]Struct rustfst::algorithms::lazy_fst_revamp::LazyFst2

pub struct LazyFst2<W: Semiring, Op: FstOp2<W>, Cache: FstCache<W>> { /* fields omitted */ }

Implementations

impl<W, Op, Cache> LazyFst2<W, Op, Cache> where
    W: Semiring,
    Op: FstOp2<W>,
    Cache: FstCache<W>, 
[src]

pub fn compute<F2: MutableFst<W>>(&self) -> Result<F2>[src]

Turns the Lazy FST into a static one.

Trait Implementations

impl<W: Semiring, Op: FstOp2<W>, Cache: FstCache<W>> CoreFst<W> for LazyFst2<W, Op, Cache>[src]

type TRS = TrsVec<W>

Weight use in the wFST. This type must implement the Semiring trait.

impl<W: Debug + Semiring, Op: Debug + FstOp2<W>, Cache: Debug + FstCache<W>> Debug for LazyFst2<W, Op, Cache>[src]

impl<W, Op, Cache> Fst<W> for LazyFst2<W, Op, Cache> where
    W: Semiring,
    Op: FstOp2<W> + 'static,
    Cache: FstCache<W> + 'static, 
[src]

impl<'a, W, Op, Cache> FstIterator<'a, W> for LazyFst2<W, Op, Cache> where
    W: Semiring,
    Op: FstOp2<W> + 'a,
    Cache: FstCache<W> + 'a, 
[src]

type FstIter = Map<Zip<<LazyFst2<W, Op, Cache> as StateIterator<'a>>::Iter, Repeat<&'a Self>>, Box<dyn FnMut((StateId, &'a Self)) -> FstIterData<W, Self::TRS>>>

impl<'a, W, Op, Cache> StateIterator<'a> for LazyFst2<W, Op, Cache> where
    W: Semiring,
    Op: FstOp2<W> + 'a,
    Cache: FstCache<W> + 'a, 
[src]

type Iter = StatesIteratorLazyFst<'a, Self>

Iterator used to iterate over the state_id of the states of an FST.

Auto Trait Implementations

impl<W, Op, Cache> RefUnwindSafe for LazyFst2<W, Op, Cache> where
    Cache: RefUnwindSafe,
    Op: RefUnwindSafe,
    W: RefUnwindSafe

impl<W, Op, Cache> Send for LazyFst2<W, Op, Cache> where
    Cache: Send,
    Op: Send,
    W: Send

impl<W, Op, Cache> Sync for LazyFst2<W, Op, Cache> where
    Cache: Sync,
    Op: Sync

impl<W, Op, Cache> Unpin for LazyFst2<W, Op, Cache> where
    Cache: Unpin,
    Op: Unpin,
    W: Unpin

impl<W, Op, Cache> UnwindSafe for LazyFst2<W, Op, Cache> where
    Cache: UnwindSafe,
    Op: UnwindSafe,
    W: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.