solverforge-scoring 0.19.11

Incremental constraint scoring for SolverForge
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* Shared fluent-chain helpers: row-view key closures for the canonical
operator-backed `Tri` tests. */

use super::fixtures::{RelAssignment, RelEmployee, RelShift};

pub(super) fn row_pair_employee_code(
    row: &crate::stream::relational::operator::Pair<
        crate::stream::relational::Leaf<'_, RelAssignment>,
        crate::stream::relational::Leaf<'_, RelShift>,
    >,
) -> String {
    row.left.entity.employee_code.clone()
}

pub(super) fn employee_key(employee: &crate::stream::relational::Leaf<'_, RelEmployee>) -> String {
    employee.entity.code.clone()
}