[][src]Trait bulls_and_cows::play::players::Questioner

pub trait Questioner<T: Eq + Hash + Clone> {
    type Error;
    fn make_new_question(&mut self);
fn answer(&self, answer: &[T]) -> Result<(usize, usize), Self::Error>; }

A player who asks questions in the game.

Associated Types

type Error

Loading content...

Required methods

fn make_new_question(&mut self)

Make a new question.

fn answer(&self, answer: &[T]) -> Result<(usize, usize), Self::Error>

Answer for the question.

Loading content...

Implementors

impl<T: Eq + Hash + Clone> Questioner<T> for ComputerQuestioner<T>[src]

type Error = HostError<T>

Loading content...