Trait utils::PuzzleExamples

source ·
pub trait PuzzleExamples<P1: Debug + Display + 'static, P2: Debug + Display + 'static> {
    const EXAMPLES: &'static [(&'static str, Option<P1>, Option<P2>)];
}
Expand description

Trait implemented by puzzles to provide example inputs and answers.

examples! implements this automatically.

Required Associated Constants§

source

const EXAMPLES: &'static [(&'static str, Option<P1>, Option<P2>)]

Object Safety§

This trait is not object safe.

Implementors§