[][src]Enum rustfst::algorithms::MapFinalAction

pub enum MapFinalAction {
    MapNoSuperfinal,
    MapAllowSuperfinal,
    MapRequireSuperfinal,
}

Determines how final weights are mapped.

Variants

MapNoSuperfinal

A final weight is mapped into a final weight. An error is raised if this is not possible.

MapAllowSuperfinal

A final weight is mapped to a transition to the superfinal state when the result cannot be represented as a final weight. The superfinal state will be added only if it is needed.

MapRequireSuperfinal

A final weight is mapped to a transition to the superfinal state unless the result can be represented as a final weight of weight Zero(). The superfinal state is always added (if the input is not the empty FST).

Trait Implementations

impl PartialEq<MapFinalAction> for MapFinalAction[src]

impl StructuralPartialEq for MapFinalAction[src]

Auto Trait Implementations

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.