with_span

Function with_span 

Source
pub fn with_span<'a, O, F>(
    parser: F,
) -> impl Parser<InputSpan<'a>, Output = Spanned<'a, O>, Error = F::Error>
where F: Parser<InputSpan<'a>, Output = O>,
Expand description

Wrapper around parsers allowing to capture both their output and the relevant span.