[][src]Struct idiom_solitaire::SolitaireSolver

pub struct SolitaireSolver {
    pub dict: Dictionary,
    pub state: HashMap<String, Vec<Idiom>>,
    pub mode: SolitaireMode,
    pub rng: SmallRng,
}

Fields

dict: Dictionarystate: HashMap<String, Vec<Idiom>>mode: SolitaireModerng: SmallRng

Implementations

impl SolitaireSolver[src]

pub fn length(&self) -> usize[src]

impl SolitaireSolver[src]

pub fn load(&mut self, bytes: &[u8]) -> Result<()>[src]

pub fn refresh(&mut self) -> Result<()>[src]

pub fn solve_random(&mut self, input: &str) -> Result<Idiom>[src]

pub fn solve_target(&mut self, input: &str, target: &str) -> Result<Vec<Idiom>>[src]

pub fn solve_greedy(&mut self, input: &str) -> Result<Idiom>[src]

pub fn solve_chain(&mut self, head: &str, length: usize) -> Vec<Idiom>[src]

Trait Implementations

impl Clone for SolitaireSolver[src]

impl Debug for SolitaireSolver[src]

impl Default for SolitaireSolver[src]

Auto Trait Implementations

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<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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<V, T> VZip<V> for T where
    V: MultiLane<T>,