utils

Trait 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>)]

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§