[−][src]Struct rustfst::algorithms::lazy_fst_revamp::LazyFst2
Implementations
impl<W, Op, Cache> LazyFst2<W, Op, Cache> where
W: Semiring,
Op: FstOp2<W>,
Cache: FstCache<W>,
[src]
W: Semiring,
Op: FstOp2<W>,
Cache: FstCache<W>,
pub fn compute<F2: MutableFst<W>>(&self) -> Result<F2>
[src]
Turns the Lazy FST into a static one.
Trait Implementations
impl<W: Semiring, Op: FstOp2<W>, Cache: FstCache<W>> CoreFst<W> for LazyFst2<W, Op, Cache>
[src]
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, Op: Debug + FstOp2<W>, Cache: Debug + FstCache<W>> Debug for LazyFst2<W, Op, Cache>
[src]
impl<W, Op, Cache> Fst<W> for LazyFst2<W, Op, Cache> where
W: Semiring,
Op: FstOp2<W> + 'static,
Cache: FstCache<W> + 'static,
[src]
W: Semiring,
Op: FstOp2<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, Op, Cache> FstIterator<'a, W> for LazyFst2<W, Op, Cache> where
W: Semiring,
Op: FstOp2<W> + 'a,
Cache: FstCache<W> + 'a,
[src]
W: Semiring,
Op: FstOp2<W> + 'a,
Cache: FstCache<W> + 'a,
type FstIter = Map<Zip<<LazyFst2<W, Op, Cache> as StateIterator<'a>>::Iter, Repeat<&'a Self>>, Box<dyn FnMut((StateId, &'a Self)) -> FstIterData<W, Self::TRS>>>
fn fst_iter(&'a self) -> Self::FstIter
[src]
impl<'a, W, Op, Cache> StateIterator<'a> for LazyFst2<W, Op, Cache> where
W: Semiring,
Op: FstOp2<W> + 'a,
Cache: FstCache<W> + 'a,
[src]
W: Semiring,
Op: FstOp2<W> + 'a,
Cache: FstCache<W> + 'a,
type Iter = StatesIteratorLazyFst<'a, Self>
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, Op, Cache> RefUnwindSafe for LazyFst2<W, Op, Cache> where
Cache: RefUnwindSafe,
Op: RefUnwindSafe,
W: RefUnwindSafe,
Cache: RefUnwindSafe,
Op: RefUnwindSafe,
W: RefUnwindSafe,
impl<W, Op, Cache> Send for LazyFst2<W, Op, Cache> where
Cache: Send,
Op: Send,
W: Send,
Cache: Send,
Op: Send,
W: Send,
impl<W, Op, Cache> Sync for LazyFst2<W, Op, Cache> where
Cache: Sync,
Op: Sync,
Cache: Sync,
Op: Sync,
impl<W, Op, Cache> Unpin for LazyFst2<W, Op, Cache> where
Cache: Unpin,
Op: Unpin,
W: Unpin,
Cache: Unpin,
Op: Unpin,
W: Unpin,
impl<W, Op, Cache> UnwindSafe for LazyFst2<W, Op, Cache> where
Cache: UnwindSafe,
Op: UnwindSafe,
W: UnwindSafe,
Cache: UnwindSafe,
Op: UnwindSafe,
W: 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, 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>,