pub struct Solution { /* private fields */ }
Implementations§
Source§impl Solution
impl Solution
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_chain(&mut self, value: usize) -> &mut Self
pub fn set_shuffle_depth(&mut self, value: i8) -> &mut Self
pub fn find_best_solution(&mut self) -> Result<&mut Self, Error>
pub fn find_random_solution( &mut self, shuffle: Shuffle, ) -> Result<&mut Self, Error>
pub fn count_solution(&mut self, chain_length: usize) -> &mut Self
pub fn shape_len(&self) -> usize
pub fn shape_string(&self) -> String
pub fn word_source_string(&self) -> String
pub fn distribution_string(&self) -> String
pub fn solutions_title(&self) -> String
pub fn solve_title(&self) -> String
pub fn solutions_string(&self) -> String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Solution
impl RefUnwindSafe for Solution
impl Send for Solution
impl Sync for Solution
impl Unpin for Solution
impl UnwindSafe for Solution
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