pub fn very_custom_rule<F, D>(
code: impl Into<RuleCode>,
severity: Severity,
message: impl Into<String>,
step_fn: F,
done_fn: D,
) -> VeryCustomRule<F, D>where
F: Fn(&mut RuleState, u32, &Instruction, Option<&ParsedShell>) + Send + Sync,
D: Fn(RuleState) -> Vec<CheckFailure> + Send + Sync,Expand description
Create a rule with custom finalization.