Module solution

Source
Expand description

Items related to validating Solutions and SolutionSets.

Structs§

CheckPredicateConfig
Configuration options passed to check_predicate.
ConstraintsUnsatisfied
The index of each constraint that was not satisfied.
PredicateErrors
Predicate checking failed for the solution at the given indices.
ProgramErrors
Program execution failed for the programs at the given node indices.

Enums§

InvalidSetStateMutations
check_set_state_mutations error.
InvalidSolution
check_solutions error.
InvalidSolutionSet
check_set error.
KvError
Error with a slot key or value.
PredicateError
check_predicate error.
PredicatesError
check_set_predicates error.
ProgramError
An error occurring during a program task.

Constants§

MAX_KEY_SIZE
Maximum number of words in a slot key.
MAX_PREDICATE_DATA
Maximum number of predicate data of a solution.
MAX_SOLUTIONS
Maximum number of solutions within a solution set.
MAX_STATE_MUTATIONS
Maximum number of state mutations of a solution.
MAX_VALUE_SIZE
Maximum number of words in a slot value.

Traits§

GetPredicate
Required impl for retrieving access to any Solution’s Predicates during check.
GetProgram
Required impl for retrieving access to any Predicate’s Programs during check.

Functions§

check_predicate
Checks the predicate of the solution within the given set at the given solution_index.
check_set
Validate a solution set, to the extent it can be validated without reference to its associated predicates.
check_set_predicates
Checks all of a SolutionSet’s Solutions against their associated Predicates.
check_set_state_mutations
Validate the solution set’s state mutations.
check_solutions
Validate the solution set’s slice of Solutions.