[−][src]Struct rustfst::algorithms::compose::ComposeFst
Implementations
impl<W: Semiring, CFB: ComposeFilterBuilder<W>, Cache: FstCache<W>> ComposeFst<W, CFB, Cache>
[src]
pub fn new_with_options(
fst1: Arc<<<CFB::CF as ComposeFilter<W>>::M1 as Matcher<W>>::F>,
fst2: Arc<<<CFB::CF as ComposeFilter<W>>::M2 as Matcher<W>>::F>,
opts: ComposeFstOpOptions<CFB::M1, CFB::M2, CFB, StateTable<ComposeStateTuple<<CFB::CF as ComposeFilter<W>>::FS>>>
) -> Result<Self> where
Cache: Default,
[src]
fst1: Arc<<<CFB::CF as ComposeFilter<W>>::M1 as Matcher<W>>::F>,
fst2: Arc<<<CFB::CF as ComposeFilter<W>>::M2 as Matcher<W>>::F>,
opts: ComposeFstOpOptions<CFB::M1, CFB::M2, CFB, StateTable<ComposeStateTuple<<CFB::CF as ComposeFilter<W>>::FS>>>
) -> Result<Self> where
Cache: Default,
pub fn new_with_options_and_cache(
fst1: Arc<<<CFB::CF as ComposeFilter<W>>::M1 as Matcher<W>>::F>,
fst2: Arc<<<CFB::CF as ComposeFilter<W>>::M2 as Matcher<W>>::F>,
opts: ComposeFstOpOptions<CFB::M1, CFB::M2, CFB, StateTable<ComposeStateTuple<<CFB::CF as ComposeFilter<W>>::FS>>>,
fst_cache: Cache
) -> Result<Self>
[src]
fst1: Arc<<<CFB::CF as ComposeFilter<W>>::M1 as Matcher<W>>::F>,
fst2: Arc<<<CFB::CF as ComposeFilter<W>>::M2 as Matcher<W>>::F>,
opts: ComposeFstOpOptions<CFB::M1, CFB::M2, CFB, StateTable<ComposeStateTuple<<CFB::CF as ComposeFilter<W>>::FS>>>,
fst_cache: Cache
) -> Result<Self>
pub fn new(
fst1: Arc<<<CFB::CF as ComposeFilter<W>>::M1 as Matcher<W>>::F>,
fst2: Arc<<<CFB::CF as ComposeFilter<W>>::M2 as Matcher<W>>::F>
) -> Result<Self> where
Cache: Default,
[src]
fst1: Arc<<<CFB::CF as ComposeFilter<W>>::M1 as Matcher<W>>::F>,
fst2: Arc<<<CFB::CF as ComposeFilter<W>>::M2 as Matcher<W>>::F>
) -> Result<Self> where
Cache: Default,
pub fn compute<F2: MutableFst<W> + AllocableFst<W>>(&self) -> Result<F2>
[src]
Turns the Lazy FST into a static one.
impl<W: Semiring, F1: ExpandedFst<W>, F2: ExpandedFst<W>> ComposeFst<W, SequenceComposeFilterBuilder<W, GenericMatcher<W, F1>, GenericMatcher<W, F2>>>
[src]
Trait Implementations
impl<W: Clone + Semiring, CFB: Clone + ComposeFilterBuilder<W>, Cache: Clone> Clone for ComposeFst<W, CFB, Cache>
[src]
fn clone(&self) -> ComposeFst<W, CFB, Cache>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<W, CFB, Cache> CoreFst<W> for ComposeFst<W, CFB, Cache> where
W: Semiring,
CFB: ComposeFilterBuilder<W>,
Cache: FstCache<W>,
[src]
W: Semiring,
CFB: ComposeFilterBuilder<W>,
Cache: FstCache<W>,
type TRS = TrsVec<W>
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<W: Debug + Semiring, CFB: Debug + ComposeFilterBuilder<W>, Cache: Debug> Debug for ComposeFst<W, CFB, Cache>
[src]
impl<W, CFB, Cache> Fst<W> for ComposeFst<W, CFB, Cache> where
W: Semiring,
CFB: ComposeFilterBuilder<W> + 'static,
Cache: FstCache<W> + 'static,
[src]
W: Semiring,
CFB: ComposeFilterBuilder<W> + 'static,
Cache: FstCache<W> + 'static,
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<'a, W, CFB, Cache> FstIterator<'a, W> for ComposeFst<W, CFB, Cache> where
W: Semiring,
CFB: ComposeFilterBuilder<W> + 'a,
Cache: FstCache<W> + 'a,
[src]
W: Semiring,
CFB: ComposeFilterBuilder<W> + 'a,
Cache: FstCache<W> + 'a,
type FstIter = <LazyFst<W, ComposeFstOp<W, CFB>, Cache> as FstIterator<'a, W>>::FstIter
fn fst_iter(&'a self) -> Self::FstIter
[src]
impl<'a, W, CFB, Cache> StateIterator<'a> for ComposeFst<W, CFB, Cache> where
W: Semiring,
CFB: ComposeFilterBuilder<W> + 'a,
Cache: FstCache<W> + 'a,
[src]
W: Semiring,
CFB: ComposeFilterBuilder<W> + 'a,
Cache: FstCache<W> + 'a,
type Iter = <LazyFst<W, ComposeFstOp<W, CFB>, Cache> 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]
Auto Trait Implementations
impl<W, CFB, Cache> RefUnwindSafe for ComposeFst<W, CFB, Cache> where
CFB: RefUnwindSafe,
Cache: RefUnwindSafe,
W: RefUnwindSafe,
<CFB as ComposeFilterBuilder<W>>::CF: ComposeFilter<W>,
<<<CFB as ComposeFilterBuilder<W>>::CF as ComposeFilter<W>>::M1 as Matcher<W>>::F: RefUnwindSafe,
<<<CFB as ComposeFilterBuilder<W>>::CF as ComposeFilter<W>>::M2 as Matcher<W>>::F: RefUnwindSafe,
<<CFB as ComposeFilterBuilder<W>>::CF as ComposeFilter<W>>::M1: Matcher<W>,
<<CFB as ComposeFilterBuilder<W>>::CF as ComposeFilter<W>>::M2: Matcher<W>,
CFB: RefUnwindSafe,
Cache: RefUnwindSafe,
W: RefUnwindSafe,
<CFB as ComposeFilterBuilder<W>>::CF: ComposeFilter<W>,
<<<CFB as ComposeFilterBuilder<W>>::CF as ComposeFilter<W>>::M1 as Matcher<W>>::F: RefUnwindSafe,
<<<CFB as ComposeFilterBuilder<W>>::CF as ComposeFilter<W>>::M2 as Matcher<W>>::F: RefUnwindSafe,
<<CFB as ComposeFilterBuilder<W>>::CF as ComposeFilter<W>>::M1: Matcher<W>,
<<CFB as ComposeFilterBuilder<W>>::CF as ComposeFilter<W>>::M2: Matcher<W>,
impl<W, CFB, Cache> Send for ComposeFst<W, CFB, Cache> where
CFB: Send,
Cache: Send,
W: Send,
<CFB as ComposeFilterBuilder<W>>::CF: ComposeFilter<W>,
<<<CFB as ComposeFilterBuilder<W>>::CF as ComposeFilter<W>>::M1 as Matcher<W>>::F: Send + Sync,
<<<CFB as ComposeFilterBuilder<W>>::CF as ComposeFilter<W>>::M2 as Matcher<W>>::F: Send + Sync,
<<CFB as ComposeFilterBuilder<W>>::CF as ComposeFilter<W>>::FS: Send,
<<CFB as ComposeFilterBuilder<W>>::CF as ComposeFilter<W>>::M1: Matcher<W>,
<<CFB as ComposeFilterBuilder<W>>::CF as ComposeFilter<W>>::M2: Matcher<W>,
CFB: Send,
Cache: Send,
W: Send,
<CFB as ComposeFilterBuilder<W>>::CF: ComposeFilter<W>,
<<<CFB as ComposeFilterBuilder<W>>::CF as ComposeFilter<W>>::M1 as Matcher<W>>::F: Send + Sync,
<<<CFB as ComposeFilterBuilder<W>>::CF as ComposeFilter<W>>::M2 as Matcher<W>>::F: Send + Sync,
<<CFB as ComposeFilterBuilder<W>>::CF as ComposeFilter<W>>::FS: Send,
<<CFB as ComposeFilterBuilder<W>>::CF as ComposeFilter<W>>::M1: Matcher<W>,
<<CFB as ComposeFilterBuilder<W>>::CF as ComposeFilter<W>>::M2: Matcher<W>,
impl<W, CFB, Cache> Sync for ComposeFst<W, CFB, Cache> where
CFB: Sync,
Cache: Sync,
<CFB as ComposeFilterBuilder<W>>::CF: ComposeFilter<W>,
<<<CFB as ComposeFilterBuilder<W>>::CF as ComposeFilter<W>>::M1 as Matcher<W>>::F: Send + Sync,
<<<CFB as ComposeFilterBuilder<W>>::CF as ComposeFilter<W>>::M2 as Matcher<W>>::F: Send + Sync,
<<CFB as ComposeFilterBuilder<W>>::CF as ComposeFilter<W>>::FS: Send,
<<CFB as ComposeFilterBuilder<W>>::CF as ComposeFilter<W>>::M1: Matcher<W>,
<<CFB as ComposeFilterBuilder<W>>::CF as ComposeFilter<W>>::M2: Matcher<W>,
CFB: Sync,
Cache: Sync,
<CFB as ComposeFilterBuilder<W>>::CF: ComposeFilter<W>,
<<<CFB as ComposeFilterBuilder<W>>::CF as ComposeFilter<W>>::M1 as Matcher<W>>::F: Send + Sync,
<<<CFB as ComposeFilterBuilder<W>>::CF as ComposeFilter<W>>::M2 as Matcher<W>>::F: Send + Sync,
<<CFB as ComposeFilterBuilder<W>>::CF as ComposeFilter<W>>::FS: Send,
<<CFB as ComposeFilterBuilder<W>>::CF as ComposeFilter<W>>::M1: Matcher<W>,
<<CFB as ComposeFilterBuilder<W>>::CF as ComposeFilter<W>>::M2: Matcher<W>,
impl<W, CFB, Cache> Unpin for ComposeFst<W, CFB, Cache> where
CFB: Unpin,
Cache: Unpin,
W: Unpin,
<CFB as ComposeFilterBuilder<W>>::CF: ComposeFilter<W>,
<<CFB as ComposeFilterBuilder<W>>::CF as ComposeFilter<W>>::FS: Unpin,
CFB: Unpin,
Cache: Unpin,
W: Unpin,
<CFB as ComposeFilterBuilder<W>>::CF: ComposeFilter<W>,
<<CFB as ComposeFilterBuilder<W>>::CF as ComposeFilter<W>>::FS: Unpin,
impl<W, CFB, Cache> UnwindSafe for ComposeFst<W, CFB, Cache> where
CFB: UnwindSafe,
Cache: UnwindSafe,
W: UnwindSafe,
<CFB as ComposeFilterBuilder<W>>::CF: ComposeFilter<W>,
<<<CFB as ComposeFilterBuilder<W>>::CF as ComposeFilter<W>>::M1 as Matcher<W>>::F: RefUnwindSafe,
<<<CFB as ComposeFilterBuilder<W>>::CF as ComposeFilter<W>>::M2 as Matcher<W>>::F: RefUnwindSafe,
CFB: UnwindSafe,
Cache: UnwindSafe,
W: UnwindSafe,
<CFB as ComposeFilterBuilder<W>>::CF: ComposeFilter<W>,
<<<CFB as ComposeFilterBuilder<W>>::CF as ComposeFilter<W>>::M1 as Matcher<W>>::F: RefUnwindSafe,
<<<CFB as ComposeFilterBuilder<W>>::CF as ComposeFilter<W>>::M2 as Matcher<W>>::F: RefUnwindSafe,
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>,