[][src]Trait rustfst::algorithms::factor_weight::FactorIterator

pub trait FactorIterator<W: Semiring>: Debug + PartialEq + Clone + Iterator<Item = (W, W)> + Sync {
    fn new(weight: W) -> Self;
fn done(&self) -> bool; }

A factor iterator takes as argument a weight w and returns a sequence of pairs of weights (xi, yi) such that the sum of the products xi times yi is equal to w. If w is fully factored, the iterator should return nothing.

Required methods

fn new(weight: W) -> Self

fn done(&self) -> bool

Loading content...

Implementors

impl FactorIterator<StringWeightLeft> for StringFactorLeft[src]

impl FactorIterator<StringWeightRestrict> for StringFactorRestrict[src]

impl FactorIterator<StringWeightRight> for StringFactorRight[src]

impl<W: Semiring> FactorIterator<GallicWeight<W>> for GallicFactor<W>[src]

impl<W: Semiring> FactorIterator<GallicWeightLeft<W>> for GallicFactorLeft<W>[src]

impl<W: Semiring> FactorIterator<GallicWeightMin<W>> for GallicFactorMin<W>[src]

impl<W: Semiring> FactorIterator<GallicWeightRestrict<W>> for GallicFactorRestrict<W>[src]

impl<W: Semiring> FactorIterator<GallicWeightRight<W>> for GallicFactorRight<W>[src]

impl<W: Semiring> FactorIterator<W> for IdentityFactor<W>[src]

Loading content...