[][src]Struct rustfst::algorithms::compose::FstAddOn

pub struct FstAddOn<F, T> { /* fields omitted */ }

Adds an object of type T to an FST. The resulting type is a new FST implementation.

Implementations

impl<F, T> FstAddOn<F, T>[src]

pub fn new(fst: F, add_on: T) -> Self[src]

pub fn fst(&self) -> &F[src]

pub fn fst_mut(&mut self) -> &mut F[src]

pub fn add_on(&self) -> &T[src]

Trait Implementations

impl<F: Clone, T: Clone> Clone for FstAddOn<F, T>[src]

impl<W: Semiring, F: CoreFst<W>, T> CoreFst<W> for FstAddOn<F, T>[src]

type TRS = F::TRS

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

impl<F: Debug, T: Debug> Debug for FstAddOn<F, T>[src]

impl<W, F, T> ExpandedFst<W> for FstAddOn<F, T> where
    W: Semiring,
    F: ExpandedFst<W>,
    T: Debug + Clone + PartialEq
[src]

impl<W, F, T: Debug> Fst<W> for FstAddOn<F, T> where
    W: Semiring,
    F: Fst<W>, 
[src]

impl<W, F, T> FstIntoIterator<W> for FstAddOn<F, T> where
    W: Semiring,
    F: FstIntoIterator<W>,
    T: Debug
[src]

type TrsIter = F::TrsIter

type FstIter = F::FstIter

impl<'a, W, F, T> FstIterator<'a, W> for FstAddOn<F, T> where
    W: Semiring + 'a,
    F: FstIterator<'a, W>, 
[src]

type FstIter = F::FstIter

impl<F: PartialEq, T: PartialEq> PartialEq<FstAddOn<F, T>> for FstAddOn<F, T>[src]

impl<'a, F: StateIterator<'a>, T> StateIterator<'a> for FstAddOn<F, T>[src]

type Iter = <F as StateIterator<'a>>::Iter

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

impl<F, T> StructuralPartialEq for FstAddOn<F, T>[src]

Auto Trait Implementations

impl<F, T> RefUnwindSafe for FstAddOn<F, T> where
    F: RefUnwindSafe,
    T: RefUnwindSafe

impl<F, T> Send for FstAddOn<F, T> where
    F: Send,
    T: Send

impl<F, T> Sync for FstAddOn<F, T> where
    F: Sync,
    T: Sync

impl<F, T> Unpin for FstAddOn<F, T> where
    F: Unpin,
    T: Unpin

impl<F, T> UnwindSafe for FstAddOn<F, T> where
    F: UnwindSafe,
    T: 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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.