Trait ImpartialGame

Source
pub trait ImpartialGame {
    type State;
    type Iter: Iterator<Item = Self::State>;

    // Required method
    fn next_state(&mut self, s: &Self::State) -> Self::Iter;
}

Required Associated Types§

Source

type State

Source

type Iter: Iterator<Item = Self::State>

Required Methods§

Source

fn next_state(&mut self, s: &Self::State) -> Self::Iter

Implementors§

Source§

impl<S, F, I> ImpartialGame for ImpartialGamer<S, F, I>
where F: FnMut(&S) -> I, I: Iterator<Item = S>,

Source§

type State = S

Source§

type Iter = I