Skip to main content

AltModifierWithMatch

Type Alias AltModifierWithMatch 

Source
pub type AltModifierWithMatch = Arc<dyn Fn(AltMatch, &mut Rule, &mut Context, Option<&RuleSnapshot>) -> AltMatch + Send + Sync>;
Expand description

Full canonical alternate modifier. next is the pre-routing next-rule view (Some(current) during open, None during close). The returned match is the one used for erroring, state mutation, action, and routing.

Aliased Typeยง

pub struct AltModifierWithMatch { /* private fields */ }