solverforge-macros 0.12.1

Derive macros for SolverForge constraint solver
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#[path = "field_only_solution/domain/mod.rs"]
mod domain;

use domain::*;
use solverforge::stream::CollectionExtract;

fn main() {
    let plan = Plan {
        routes: Vec::new(),
        visits: Vec::new(),
        score: None,
    };

    let _ = Plan::routes().extract(&plan);
    let _ = Plan::visits().extract(&plan);
}