pub fn validate(rule: &TowerRule) -> Result<Vec<RuleWarning>, RuleError>Expand description
Validate a parsed TowerRule.
Returns Ok(warnings) if the rule is semantically valid (warnings are
non-fatal and surfaced in the authoring UI). Returns Err(RuleError) on
the first hard constraint violation — the rule must not be loaded until the
error is fixed.
Call compile (compiler.rs) after this to also catch predicate structure
errors and regex syntax.