Skip to main content

Module analysis

Module analysis 

Source
Expand description

Score analysis types for detailed constraint tracking.

This module provides types for analyzing constraint matches in detail: each match’s score and the entities that caused it.

Structs§

ConstraintAnalysis
Per-constraint breakdown in a score explanation.
ConstraintJustification
Justification for why a constraint matched.
DetailedConstraintMatch
A detailed constraint match with entity information.
EntityRef
An entity involved in a constraint match, as constraint analysis reports it: the entity’s type name, its Debug rendering and, when its type has a #[planning_id], its planning id, all taken when the match is explained. It holds no copy of the entity, so explaining a match requires only Debug on the entity type.