pub fn peek<A, I: Clone>(parser: impl Parser<A, I>) -> impl Parser<A, I>
Expand description

Transforms a parser into a non-consuming one, allowing to parse ahead without consuming anything.