pub struct SudokuSolver { /* private fields */ }Implementations§
Source§impl SudokuSolver
impl SudokuSolver
pub fn new(sudoku: Sudoku) -> Self
pub fn get_invalid_positions(&self) -> Vec<u8> ⓘ
pub fn initialize_candidates(&mut self)
pub fn apply_step(&mut self, step: &Step)
pub fn is_completed(&self) -> bool
pub fn solve_full_house(&self) -> Option<Step>
pub fn solve_naked_single(&self) -> Option<Step>
pub fn solve_locked_candidates(&self) -> Option<Step>
pub fn solve_naked_subset(&self) -> Option<Step>
pub fn solve_one_step(&self) -> Option<Step>
Trait Implementations§
Source§impl From<SudokuSolver> for JsValue
impl From<SudokuSolver> for JsValue
Source§fn from(value: SudokuSolver) -> Self
fn from(value: SudokuSolver) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for SudokuSolver
impl FromWasmAbi for SudokuSolver
Source§impl IntoWasmAbi for SudokuSolver
impl IntoWasmAbi for SudokuSolver
Source§impl LongRefFromWasmAbi for SudokuSolver
impl LongRefFromWasmAbi for SudokuSolver
Source§impl OptionFromWasmAbi for SudokuSolver
impl OptionFromWasmAbi for SudokuSolver
Source§impl OptionIntoWasmAbi for SudokuSolver
impl OptionIntoWasmAbi for SudokuSolver
Source§impl RefFromWasmAbi for SudokuSolver
impl RefFromWasmAbi for SudokuSolver
Source§type Anchor = RcRef<SudokuSolver>
type Anchor = RcRef<SudokuSolver>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl RefMutFromWasmAbi for SudokuSolver
impl RefMutFromWasmAbi for SudokuSolver
Source§impl TryFromJsValue for SudokuSolver
impl TryFromJsValue for SudokuSolver
Source§impl VectorFromWasmAbi for SudokuSolver
impl VectorFromWasmAbi for SudokuSolver
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[SudokuSolver]>
Source§impl VectorIntoJsValue for SudokuSolver
impl VectorIntoJsValue for SudokuSolver
fn vector_into_jsvalue(vector: Box<[SudokuSolver]>) -> JsValue
Source§impl VectorIntoWasmAbi for SudokuSolver
impl VectorIntoWasmAbi for SudokuSolver
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[SudokuSolver]>) -> Self::Abi
Source§impl WasmDescribeVector for SudokuSolver
impl WasmDescribeVector for SudokuSolver
impl SupportsConstructor for SudokuSolver
impl SupportsInstanceProperty for SudokuSolver
impl SupportsStaticProperty for SudokuSolver
Auto Trait Implementations§
impl !Freeze for SudokuSolver
impl !RefUnwindSafe for SudokuSolver
impl Send for SudokuSolver
impl !Sync for SudokuSolver
impl Unpin for SudokuSolver
impl UnwindSafe for SudokuSolver
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 moreSource§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.