solverforge_core/lib.rs
1//! Core types and traits for SolverForge.
2//!
3//! Applications use them through the `solverforge` facade. This crate
4//! provides:
5//! - Score types for representing solution quality
6//! - Domain traits for defining planning problems
7//! - Descriptor types for runtime metadata
8//! - Constraint types for incremental evaluation
9
10/* PhantomData<(fn() -> T, ...)> is an intentional pattern to avoid inheriting
11trait bounds from phantom type parameters. Clippy's type_complexity lint
12triggers on these tuples but the pattern is architecturally required.
13*/
14
15pub mod constraint;
16pub mod constraint_weights;
17pub mod domain;
18pub mod fast_hash;
19pub mod score;
20
21#[cfg(test)]
22mod constraint_tests;
23
24pub use constraint::{ConstraintRef, ImpactType};
25pub use constraint_weights::{
26 ConstraintWeightError, ConstraintWeights, MAX_CONSTRAINT_WEIGHT_MULTIPLIER,
27};
28pub use domain::{PlanningEntity, PlanningId, PlanningSolution, ProblemFact};
29pub use score::{
30 BendableScore, HardMediumSoftScore, HardSoftDecimalScore, HardSoftScore, ParseableScore, Score,
31 ScoreParseError, SoftScore,
32};