[−][src]Struct rustfst::algorithms::compose::FstAddOn
Adds an object of type T to an FST. The resulting type is a new FST implementation.
Implementations
impl<F, T> FstAddOn<F, T>[src]
pub fn new(fst: F, add_on: T) -> Self[src]
pub fn fst(&self) -> &F[src]
pub fn fst_mut(&mut self) -> &mut F[src]
pub fn add_on(&self) -> &T[src]
Trait Implementations
impl<F: Clone, T: Clone> Clone for FstAddOn<F, T>[src]
impl<W: Semiring, F: CoreFst<W>, T> CoreFst<W> for FstAddOn<F, T>[src]
type TRS = F::TRS
Weight use in the wFST. This type must implement the Semiring trait.
fn start(&self) -> Option<usize>[src]
fn final_weight(&self, state_id: usize) -> Result<Option<W>>[src]
unsafe fn final_weight_unchecked(&self, state_id: usize) -> Option<W>[src]
fn num_trs(&self, s: usize) -> Result<usize>[src]
unsafe fn num_trs_unchecked(&self, s: usize) -> usize[src]
fn get_trs(&self, state_id: usize) -> Result<Self::TRS>[src]
unsafe fn get_trs_unchecked(&self, state_id: usize) -> Self::TRS[src]
fn properties(&self) -> FstProperties[src]
fn num_input_epsilons(&self, state: usize) -> Result<usize>[src]
fn num_output_epsilons(&self, state: usize) -> Result<usize>[src]
fn is_final(&self, state_id: StateId) -> Result<bool>[src]
unsafe fn is_final_unchecked(&self, state_id: StateId) -> bool[src]
fn is_start(&self, state_id: StateId) -> bool[src]
fn properties_with_mask(&self, mask: FstProperties) -> FstProperties[src]
fn properties_check(&self, props_known: FstProperties) -> Result<FstProperties>[src]
impl<F: Debug, T: Debug> Debug for FstAddOn<F, T>[src]
impl<W, F, T> ExpandedFst<W> for FstAddOn<F, T> where
W: Semiring,
F: ExpandedFst<W>,
T: Debug + Clone + PartialEq, [src]
W: Semiring,
F: ExpandedFst<W>,
T: Debug + Clone + PartialEq,
fn num_states(&self) -> usize[src]
fn equal_quantized<F2: ExpandedFst<W>>(&self, fst2: &F2) -> bool where
W: WeightQuantize, [src]
W: WeightQuantize,
fn quantize<F2: MutableFst<W> + AllocableFst<W>>(&self) -> Result<F2> where
W: WeightQuantize, [src]
W: WeightQuantize,
impl<W, F, T: Debug> Fst<W> for FstAddOn<F, T> where
W: Semiring,
F: Fst<W>, [src]
W: Semiring,
F: Fst<W>,
fn input_symbols(&self) -> Option<&Arc<SymbolTable>>[src]
fn output_symbols(&self) -> Option<&Arc<SymbolTable>>[src]
fn set_input_symbols(&mut self, symt: Arc<SymbolTable>)[src]
fn set_output_symbols(&mut self, symt: Arc<SymbolTable>)[src]
fn take_input_symbols(&mut self) -> Option<Arc<SymbolTable>>[src]
fn take_output_symbols(&mut self) -> Option<Arc<SymbolTable>>[src]
fn set_symts_from_fst<W2: Semiring, OF: Fst<W2>>(&mut self, other_fst: &OF)[src]
fn final_states_iter(&self) -> FinalStatesIterator<'_, W, Self> where
Self: Sized, [src]
Self: Sized,
impl<W, F, T> FstIntoIterator<W> for FstAddOn<F, T> where
W: Semiring,
F: FstIntoIterator<W>,
T: Debug, [src]
W: Semiring,
F: FstIntoIterator<W>,
T: Debug,
impl<'a, W, F, T> FstIterator<'a, W> for FstAddOn<F, T> where
W: Semiring + 'a,
F: FstIterator<'a, W>, [src]
W: Semiring + 'a,
F: FstIterator<'a, W>,
impl<F: PartialEq, T: PartialEq> PartialEq<FstAddOn<F, T>> for FstAddOn<F, T>[src]
impl<'a, F: StateIterator<'a>, T> StateIterator<'a> for FstAddOn<F, T>[src]
type Iter = <F as StateIterator<'a>>::Iter
Iterator used to iterate over the state_id of the states of an FST.
fn states_iter(&'a self) -> Self::Iter[src]
impl<F, T> StructuralPartialEq for FstAddOn<F, T>[src]
Auto Trait Implementations
impl<F, T> RefUnwindSafe for FstAddOn<F, T> where
F: RefUnwindSafe,
T: RefUnwindSafe,
F: RefUnwindSafe,
T: RefUnwindSafe,
impl<F, T> Send for FstAddOn<F, T> where
F: Send,
T: Send,
F: Send,
T: Send,
impl<F, T> Sync for FstAddOn<F, T> where
F: Sync,
T: Sync,
F: Sync,
T: Sync,
impl<F, T> Unpin for FstAddOn<F, T> where
F: Unpin,
T: Unpin,
F: Unpin,
T: Unpin,
impl<F, T> UnwindSafe for FstAddOn<F, T> where
F: UnwindSafe,
T: UnwindSafe,
F: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Same<T> for T[src]
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,