Function glue::combinators::whitespace::space

source ยท
pub fn space<'a, Rng>(range: Rng) -> impl Parser<'a, &'a str>
where Rng: RangeBounds<usize> + Clone,
Expand description

A shorthand for matching whitespace characters.

assert_eq!(
    take(1.., is(whitespace)).parse(" foobar"),
    space(1..).parse(" foobar")
);