Function chumsky_branch::prelude::branch

source ·
pub fn branch<'a, P, T>(begin: &'a str, parser: P) -> Branch<'a, T, P::Error>where
    P: Parser<char, T> + 'a,
Expand description

Branch into a parser when and only when encountering the begin pattern.