pub struct Words { /* private fields */ }
Implementations§
Source§impl Words
impl Words
pub fn new( letters: &str, settings: HashMap<String, String>, ) -> Result<Self, Error>
pub fn set_word_source( &mut self, dir: Option<String>, file: Option<String>, ) -> &mut Self
pub fn load_words(&mut self) -> &mut Self
pub fn set_max_solutions(&mut self, value: usize) -> &mut Self
pub fn set_required(&mut self, value: Option<String>) -> &mut Self
pub fn set_pangram(&mut self, value: bool) -> &mut Self
pub fn find_solutions(&mut self) -> Result<&mut Self, Error>
pub fn count_solution(&mut self, chain_length: usize) -> &mut Self
pub fn word_source_string(&self) -> String
pub fn distribution_string(&self) -> String
pub fn solutions_title(&self) -> String
pub fn solutions_string(&self) -> String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Words
impl RefUnwindSafe for Words
impl Send for Words
impl Sync for Words
impl Unpin for Words
impl UnwindSafe for Words
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