pub fn ensure_no_overlap<'a, F>(
parser: F,
) -> impl Parser<InputSpan<'a>, Output = F::Output, Error = F::Error>Expand description
Ensures that the child parser does not consume a part of a larger expression by rejecting
if the part following the input is an alphanumeric char or _.
For example, float parses -Inf, which can lead to parser failure if it’s a part of
a larger expression (e.g., -Infer(2, 3)).