Struct rustfst::algorithms::lazy::cache::simple_hash_map_cache::SimpleHashMapCache
source · pub struct SimpleHashMapCache<W: Semiring> { /* private fields */ }
Implementations§
Trait Implementations§
source§impl<W: Semiring> Clone for SimpleHashMapCache<W>
impl<W: Semiring> Clone for SimpleHashMapCache<W>
source§impl<W: Semiring> Default for SimpleHashMapCache<W>
impl<W: Semiring> Default for SimpleHashMapCache<W>
source§impl<W: Semiring> FstCache<W> for SimpleHashMapCache<W>
impl<W: Semiring> FstCache<W> for SimpleHashMapCache<W>
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 compute_num_known_trs(&self) -> usize
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 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
source§impl<W: SerializableSemiring> PartialEq for SimpleHashMapCache<W>
impl<W: SerializableSemiring> PartialEq for SimpleHashMapCache<W>
source§impl<W: SerializableSemiring> SerializableCache for SimpleHashMapCache<W>
impl<W: SerializableSemiring> SerializableCache for SimpleHashMapCache<W>
Auto Trait Implementations§
impl<W> !Freeze for SimpleHashMapCache<W>
impl<W> RefUnwindSafe for SimpleHashMapCache<W>
impl<W> Send for SimpleHashMapCache<W>where
W: Send,
impl<W> Sync for SimpleHashMapCache<W>where
W: Send,
impl<W> Unpin for SimpleHashMapCache<W>where
W: Unpin,
impl<W> UnwindSafe for SimpleHashMapCache<W>
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