Struct harper_core::Dictionary
source · pub struct Dictionary { /* private fields */ }
Implementations§
source§impl Dictionary
impl Dictionary
pub fn new() -> &'static Self
sourcepub fn words_with_len_iter(
&self,
len: usize
) -> Box<dyn Iterator<Item = &[char]> + '_>
pub fn words_with_len_iter( &self, len: usize ) -> Box<dyn Iterator<Item = &[char]> + '_>
Iterate over all the words in the dicitonary of a given length
pub fn words_iter(&self) -> impl Iterator<Item = &[char]>
pub fn contains_word(&self, word: &[char]) -> bool
Trait Implementations§
source§impl Clone for Dictionary
impl Clone for Dictionary
source§fn clone(&self) -> Dictionary
fn clone(&self) -> Dictionary
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for Dictionary
impl Send for Dictionary
impl Sync for Dictionary
impl Unpin for Dictionary
impl UnwindSafe for Dictionary
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