Skip to main content

AltModifier

Type Alias AltModifier 

Source
pub type AltModifier = Arc<dyn Fn(AltSpec, &mut Rule, &mut Context) -> AltSpec + Send + Sync>;
Expand description

Post-match alternate modifier. It takes and returns the effective match so replacement is explicit rather than mutating shared grammar state.

Aliased Typeยง

pub struct AltModifier { /* private fields */ }