flexible_inspect_rs/rules/next/
modifier_arena.rs

1use super::*;
2use crate::rules::{traits::RuleBase, Counter};
3
4/// Additional checks of modifiers are performed here
5/// ( if there will be more of them and they will take a long time to calculate,
6/// we will switch to checking via `async_task` for each modifier )
7pub fn modifier_runner<R: RuleBase, C: PartialEq + Eq + Hash>(
8    rule: &R,
9    captures: &mut CaptureData<C>,
10) -> NextStep {
11    // ====================== COUNTER ======================
12    if let NextStep::Error(value) = Counter::counter_status(rule, captures) {
13        return NextStep::Error(value);
14    }
15    // ====================================================
16
17    NextStep::Finish
18}