pub trait Generate: Score + Sized {
// Required method
fn generate(order: u8, difficulty: Difficulty) -> Self;
}
Expand description
Trait to generate a puzzle.
Requires that the puzzle be solvable (to ensure the desired difficulty is attained).
Required Methods§
Sourcefn generate(order: u8, difficulty: Difficulty) -> Self
fn generate(order: u8, difficulty: Difficulty) -> Self
Generates a puzzle of the desired order and difficulty.
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.