[][src]Struct nonogrid::solver::backtracking::Solver

pub struct Solver<B, P, S> where
    B: Block,
    P: ProbeSolver<BlockType = B>,
    S: LineSolver<BlockType = B>, 
{ pub solutions: Vec<Vec<<B as Block>::Color>>, pub search_tree: MutRc<SearchTree<(Point, B::Color), f64>>, // some fields omitted }

Fields

solutions: Vec<Vec<<B as Block>::Color>>search_tree: MutRc<SearchTree<(Point, B::Color), f64>>

Methods

impl<B, P, S> Solver<B, P, S> where
    B: Block,
    P: ProbeSolver<BlockType = B>,
    S: LineSolver<BlockType = B>, 
[src]

pub fn new(board: MutRc<Board<B>>) -> Self[src]

pub fn with_options(
    board: MutRc<Board<B>>,
    max_solutions: Option<usize>,
    timeout: Option<u32>,
    max_depth: Option<usize>
) -> Self
[src]

pub fn run(&mut self) -> Result<(), String>[src]

Auto Trait Implementations

impl<B, P, S> !Send for Solver<B, P, S>

impl<B, P, S> !Sync for Solver<B, P, S>

Blanket Implementations

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

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

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.

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

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

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