pub struct StoreFSTAction { /* private fields */ }Implementations§
Source§impl StoreFSTAction
impl StoreFSTAction
pub fn push_word(&self, word: &str, fst_store_config: &ConfigStoreFST) -> bool
pub fn pop_word(&self, word: &str) -> bool
pub fn suggest_words( &self, from_word: &str, original_word_len: usize, limit: usize, max_typo_factor: Option<u32>, ) -> Option<impl ExactSizeIterator<Item = (String, QueryMatchScore)> + DoubleEndedIterator + use<>>
pub fn lookup_begins( &self, from_word: &str, original_word_len: usize, ) -> Option<impl Iterator<Item = (String, QueryMatchScore)>>
pub fn lookup_typos( &self, from_word: &str, typo_factor: u32, ) -> Option<impl Iterator<Item = (String, QueryMatchScore)>>
pub fn list_words(&self, limit: usize, offset: usize) -> Result<Vec<String>, ()>
pub fn count_words(&self) -> usize
Auto Trait Implementations§
impl Freeze for StoreFSTAction
impl RefUnwindSafe for StoreFSTAction
impl Send for StoreFSTAction
impl Sync for StoreFSTAction
impl Unpin for StoreFSTAction
impl UnsafeUnpin for StoreFSTAction
impl UnwindSafe for StoreFSTAction
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