Module rustfst_ffi::fst

source ·

Modules§

Structs§

Traits§

  • This trait is an alias for the FST trait. It makes the FST trait Boxable and downcastable to one of the supported C Fst structs. This trait allows to share Fst trait methods accross FST types by sharing a common input type in the binded methods. This generic Fst type can then be downcast to the appropriate Fst type (VectorFst, ConstFst, ..) in order to get access to specific methods (add_tr, ..).

Functions§

  • drop impl
  • Retrieves the final weight of a state (if the state is a final one).
  • Safety
  • Fst methods As described in fst_traits Retrieves the input SymbolTable associated to the Fst. If no SymbolTable has been previously attached then a null pointer is returned.
  • Returns whether or not the state with identifier passed as parameters is a final state.
  • Returns whether or not the state with identifier passed as parameters is a final state.
  • Number of trs leaving a specific state in the wFST.
  • Retrieves the output SymbolTable associated to the Fst. If no SymbolTable has been previously attached then a null pointer is returned.
  • Attaches an input SymbolTable to the Fst. The SymbolTable is not duplicated with the use of Arc.
  • Attaches an output SymbolTable to the Fst. The SymbolTable is not duplicated with the use of Arc.
  • Core FST methods As defined in fst_traits Returns the ID of the start state of the wFST if it exists else none
  • Removes the input symbol table from the Fst and retrieves it.
  • Removes the output symbol table from the Fst and retrieves it.
  • Safety
  • Safety