Function rem_utils::parser::ws

source ยท
pub fn ws<'a, F, O, E: ParseError<&'a str>>(
    inner: F,
) -> impl FnMut(&'a str) -> IResult<&'a str, O, E>
where F: Fn(&'a str) -> IResult<&'a str, O, E> + 'a,
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.