Expand description
Runs the rules: which rule applies to which node, and does the node pass?
Mirrors matches, run_check and evaluate in reference/core.py and section 5 of the spec.
Structs§
- Evaluation
- Everything the rules found in a graph.
- Ghost
- A node that a failed
require_linksays should exist: “a link of this type to something of this type, in this plane”. The editor draws these as ghosts. - Rule
Result - One rule applied to one node.
Enums§
- Status
- The outcome of one rule on one node.
Functions§
- evaluate
- Run every rule over the graph.
- json_eq
- JSON equality, the way the spec defines it:
trueis never1, but1equals1.0, and this holds inside lists and maps. serde_json’s own==would say1 != 1.0. - unmatched_
rules - Enabled rules that name specific nodes with
idbut match none of them: a typo looks exactly like success.