Skip to main content

AltAction

Type Alias AltAction 

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

Full canonical alternate action. A returned error token aborts the pass; other returned tokens are ignored by the mature engine and should be expressed as None here.

Aliased Typeยง

pub struct AltAction { /* private fields */ }