[−][src]Trait rustfst::algorithms::compose::matchers::Matcher
Matchers find and iterate through requested labels at FST states. In the simplest form, these are just some associative map or search keyed on labels. More generally, they may implement matching special labels that represent sets of labels such as sigma (all), rho (rest), or phi (fail).
Associated Types
type F: ExpandedFst<W>
type Iter: Iterator<Item = IterItemMatcher<W>> + Clone
Required methods
fn new(fst: Arc<Self::F>, match_type: MatchType) -> Result<Self> where
Self: Sized,
Self: Sized,
fn iter(&self, state: StateId, label: Label) -> Result<Self::Iter>
fn final_weight(&self, state: StateId) -> Result<Option<W>>
fn match_type(&self, test: bool) -> Result<MatchType>
fn flags(&self) -> MatcherFlags
fn priority(&self, state: StateId) -> Result<usize>
Indicates preference for being the side used for matching in composition. If the value is kRequirePriority, then it is mandatory that it be used. Calling this method without passing the current state of the matcher invalidates the state of the matcher.