Skip to main content

solverforge_scoring/constraint/complemented/
debug.rs

1use crate::stream::collector::UniCollector;
2use solverforge_core::score::Score;
3
4use super::ComplementedGroupConstraint;
5
6impl<S, A, B, K, EA, EB, KA, KB, C, D, W, Sc> std::fmt::Debug
7    for ComplementedGroupConstraint<S, A, B, K, EA, EB, KA, KB, C, D, W, Sc>
8where
9    C: UniCollector<A>,
10    Sc: Score,
11{
12    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
13        f.debug_struct("ComplementedGroupConstraint")
14            .field("name", &self.constraint_ref.name)
15            .field("impact_type", &self.impact_type)
16            .field("groups", &self.groups.len())
17            .finish()
18    }
19}