[][src]Function rustfst::algorithms::push

pub fn push<W, F1, F2>(
    ifst: &F1,
    reweight_type: ReweightType,
    push_type: PushType
) -> Result<F2> where
    F1: ExpandedFst<W>,
    F2: ExpandedFst<W> + MutableFst<W> + AllocableFst<W>,
    W: WeaklyDivisibleSemiring + WeightQuantize,
    <W as Semiring>::ReverseWeight: 'static, 

Pushes the weights and/or labels of the input FST into the output mutable FST by pushing weights and/or labels towards the initial state or final states.