[][src]Struct dancing_links::Solver

pub struct Solver<'e, E: ExactCover> { /* fields omitted */ }

Solver that iteratively returns solutions to exact cover problems.

Implementations

impl<'e, E> Solver<'e, E> where
    E: ExactCover
[src]

pub fn new(problem: &'e E) -> Self[src]

Create a new Solver with the given instance of an exact cover problem.

pub fn reset(&mut self)[src]

Reset all solver state except for the stored possibilities and constraints.

pub fn all_solutions(&mut self) -> Vec<Vec<&'e E::Possibility>>[src]

Return all possible solutions.

pub fn next_solution<'s>(&'s mut self) -> Option<Vec<&'e E::Possibility>> where
    'e: 's, 
[src]

Compute up to the next solution, returning None if there are no more.

Trait Implementations

impl<'e, E: Debug + ExactCover> Debug for Solver<'e, E>[src]

impl<'e, E> Iterator for Solver<'e, E> where
    E: ExactCover
[src]

type Item = Vec<&'e E::Possibility>

The type of the elements being iterated over.

Auto Trait Implementations

impl<'e, E> !RefUnwindSafe for Solver<'e, E>

impl<'e, E> !Send for Solver<'e, E>

impl<'e, E> !Sync for Solver<'e, E>

impl<'e, E> Unpin for Solver<'e, E>

impl<'e, E> !UnwindSafe for Solver<'e, E>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.