Trait PartisanGame

Source
pub trait PartisanGame {
    type State;
    type LIter: Iterator<Item = Self::State>;
    type RIter: Iterator<Item = Self::State>;

    // Required methods
    fn next_left(&mut self, s: &Self::State) -> Self::LIter;
    fn next_right(&mut self, s: &Self::State) -> Self::RIter;
}

Required Associated Types§

Source

type State

Source

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

Source

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

Required Methods§

Source

fn next_left(&mut self, s: &Self::State) -> Self::LIter

Source

fn next_right(&mut self, s: &Self::State) -> Self::RIter

Implementors§

Source§

impl<S, F, G, L, R> PartisanGame for PartisanGamer<S, F, G, L, R>
where F: FnMut(&S) -> L, L: Iterator<Item = S>, G: FnMut(&S) -> R, R: Iterator<Item = S>,

Source§

type State = S

Source§

type LIter = L

Source§

type RIter = R