pub fn plan_rule( rule: &Rule, base_relations: &RefRelationStore, ) -> Result<RulePlan, PlanError>
Plan a single rule. See module-level docs for the contract.