Function gchemol_parser::parsers::ws

source ·
pub fn ws<'a, ParseInner, Output, Error>(
    inner: ParseInner
) -> impl Parser<&'a str, Output, Error>
where ParseInner: Parser<&'a str, Output, Error>, Error: ParserError<&'a str>,
Expand description

A combinator that takes a parser inner and produces a parser that also consumes both leading and trailing whitespace, returning the output of inner.