Struct pepper::word_database::WordDatabase
source · [−]pub struct WordDatabase { /* private fields */ }
Implementations
sourceimpl WordDatabase
impl WordDatabase
pub fn new() -> Self
pub fn add(&mut self, word: &str)
pub fn remove(&mut self, word: &str)
pub fn word_at(&self, index: usize) -> &str
pub fn word_indices(&self) -> WordIndicesIter<'_>ⓘNotable traits for WordIndicesIter<'a>impl<'a> Iterator for WordIndicesIter<'a> type Item = (usize, &'a str);
Auto Trait Implementations
impl RefUnwindSafe for WordDatabase
impl Send for WordDatabase
impl Sync for WordDatabase
impl Unpin for WordDatabase
impl UnwindSafe for WordDatabase
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more