between

Function between 

Source
pub fn between<TokenKind, T1, T2, T3, E>(
    prefix: impl Parser<TokenKind, T1, E>,
    p: impl Parser<TokenKind, T2, E>,
    suffix: impl Parser<TokenKind, T3, E>,
) -> impl Parser<TokenKind, T2, E>
Expand description

Matches three parsers in sequence, returning only the second result.