pub struct RustokuBuilder { /* private fields */ }Expand description
A simple builder for constructing Rustoku with fluent configuration.
Implementations§
Source§impl RustokuBuilder
impl RustokuBuilder
Sourcepub fn board_from_str(self, s: &str) -> Result<Self, RustokuError>
pub fn board_from_str(self, s: &str) -> Result<Self, RustokuError>
Provide the initial board as a string (convenience).
Sourcepub fn techniques(self, techniques: TechniqueFlags) -> Self
pub fn techniques(self, techniques: TechniqueFlags) -> Self
Configure which techniques the solver should use.
Sourcepub fn max_solutions(self, max: usize) -> Self
pub fn max_solutions(self, max: usize) -> Self
Optionally hint the builder with a maximum number of solutions.
Sourcepub fn build(self) -> Result<Rustoku, RustokuError>
pub fn build(self) -> Result<Rustoku, RustokuError>
Finalize the builder and construct the Rustoku instance.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RustokuBuilder
impl RefUnwindSafe for RustokuBuilder
impl Send for RustokuBuilder
impl Sync for RustokuBuilder
impl Unpin for RustokuBuilder
impl UnwindSafe for RustokuBuilder
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