pub trait AnswerCache {
// Required methods
fn correct(&self, puzzle: Puzzle, part: Part) -> Option<String>;
fn record(&self, puzzle: Puzzle, part: Part, answer: &str);
}Expand description
Stores answers known to be correct.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".