konnektoren_core/challenges/solvable.rs
1use crate::challenges::challenge_input::ChallengeInput;
2use crate::challenges::error::Result;
3
4pub trait Solvable {
5 /// Attempts to solve a part of the challenge with the given input.
6 /// Returns `true` if the part is successfully solved, otherwise `false`.
7 fn solve(&mut self, input: ChallengeInput, task_index: usize) -> Result<bool>;
8}