pub type StateAction = Arc<dyn Fn(&mut Rule, &mut Context, Option<&RuleSnapshot>, Option<Token>) -> Result<Option<Token>, ActionError> + Send + Sync>;Expand description
Canonical rule lifecycle callback (bo/ao/bc/ac). next is the
rule selected for the following pass, or None for the no-rule sentinel;
out is the previous handler’s token result in the same phase.
Aliased Type§
pub struct StateAction { /* private fields */ }