Skip to main content

AltError

Type Alias AltError 

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

Function-valued alternate error. Returning a token rejects the alternate at its match site and uses the token’s err/why field as the error code.

Aliased Type§

pub struct AltError { /* private fields */ }