pub trait Score: Solve {
// Required method
fn score(&self) -> Option<usize>;
// Provided method
fn difficulty(&self) -> Option<Difficulty> { ... }
}
Expand description
Trait defining a puzzle with quantifiable difficulty.
Required Methods§
Provided Methods§
Sourcefn difficulty(&self) -> Option<Difficulty>
fn difficulty(&self) -> Option<Difficulty>
The graded difficulty score of this puzzle.
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.