Skip to main content

LexMatcherCallback

Type Alias LexMatcherCallback 

Source
pub type LexMatcherCallback = Arc<dyn Fn(&str) -> Option<LexCheckToken> + Send + Sync>;
Expand description

Effect-based custom lexer matcher used by serialized options.lex.match entries. The returned token must consume a non-empty prefix of the remaining source.

Aliased Typeยง

pub struct LexMatcherCallback { /* private fields */ }