pub fn set_rules(&mut self, rules: &DeterminatorRules) -> Result<&mut Self, RulesError> {
        let rules = RulesImpl::new(self.new, rules)?;
        self.rules = rules;
        Ok(self)
    }
Processes and configures determinator rules.

Returns an error if the rules were invalid in some way.
tools/determinator/src/determinator.rs