pub struct FirstCache<W: Semiring, Cache: FstCache<W>> { /* private fields */ }Trait Implementations§
Source§impl<W: Semiring, Cache: FstCache<W>> FstCache<W> for FirstCache<W, Cache>
impl<W: Semiring, Cache: FstCache<W>> FstCache<W> for FirstCache<W, Cache>
fn get_start(&self) -> CacheStatus<Option<StateId>>
fn insert_start(&self, id: Option<StateId>)
fn get_trs(&self, id: StateId) -> CacheStatus<TrsVec<W>>
fn insert_trs(&self, id: StateId, trs: TrsVec<W>)
fn get_final_weight(&self, id: StateId) -> CacheStatus<Option<W>>
fn insert_final_weight(&self, id: StateId, weight: Option<W>)
fn num_known_states(&self) -> usize
fn compute_num_known_trs(&self) -> usize
fn num_trs(&self, id: StateId) -> Option<usize>
fn num_input_epsilons(&self, id: StateId) -> Option<usize>
fn num_output_epsilons(&self, id: StateId) -> Option<usize>
fn len_trs(&self) -> usize
fn len_final_weights(&self) -> usize
Auto Trait Implementations§
impl<W, Cache> !Freeze for FirstCache<W, Cache>
impl<W, Cache> RefUnwindSafe for FirstCache<W, Cache>where
Cache: RefUnwindSafe,
impl<W, Cache> Send for FirstCache<W, Cache>
impl<W, Cache> Sync for FirstCache<W, Cache>
impl<W, Cache> Unpin for FirstCache<W, Cache>
impl<W, Cache> UnwindSafe for FirstCache<W, Cache>where
Cache: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more