nanoeval-solver 0.0.1

Solver abstractions and implementations for evaluation task execution in the nanoeval framework
1
2
3
4
5
6
7
8
9
//! Solver traits for nanoeval.

use nanoeval_primitives::{Problem, Validate};

/// The `Solve` trait defines a method for solving a given problem.
pub trait Solve<P: Problem, R: Validate> {
    /// Solves the given problem and returns a result.
    fn solve(&self, problem: P) -> R;
}