Function mut_keys

Source
pub fn mut_keys(
    solution: &Solution,
    predicate_index: SolutionDataIndex,
) -> impl Iterator<Item = &Key>
Expand description

A helper for collecting all mutable keys that are proposed for mutation for the predicate at the given index.

Specifically, assists in calculating the mut_keys_len for SolutionAccess, as this is equal to the .count() of the returned iterator.

Note: In the case that the given solution is invalid and contains multiple mutations to the same key, the same key will be yielded multiple times.