pub struct BoggleBoardSolver(/* private fields */);Expand description
the boggle board solver struct
Implementations§
Source§impl BoggleBoardSolver
impl BoggleBoardSolver
Sourcepub fn with_dictionary<P: Into<String>>(self, path: P) -> Result<Self, Error>
pub fn with_dictionary<P: Into<String>>(self, path: P) -> Result<Self, Error>
sets the trie dictionary text file path
Sourcepub fn solve_vec(
&self,
board: &Vec<char>,
width: usize,
length: usize,
) -> Option<BoggleBoardResult>
pub fn solve_vec( &self, board: &Vec<char>, width: usize, length: usize, ) -> Option<BoggleBoardResult>
solve a vector representing the boggle board
Sourcepub fn solve(&self, board: &Board) -> Option<BoggleBoardResult>
pub fn solve(&self, board: &Board) -> Option<BoggleBoardResult>
solve a boggle board
Trait Implementations§
Source§impl Default for BoggleBoardSolver
impl Default for BoggleBoardSolver
Source§fn default() -> BoggleBoardSolver
fn default() -> BoggleBoardSolver
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BoggleBoardSolver
impl RefUnwindSafe for BoggleBoardSolver
impl Send for BoggleBoardSolver
impl Sync for BoggleBoardSolver
impl Unpin for BoggleBoardSolver
impl UnwindSafe for BoggleBoardSolver
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more