Function combine::parser::byte::spaces

source ·
pub fn spaces<Input>() -> impl Parser<Input, Output = ()>
where Input: Stream<Token = u8>,
Expand description

Skips over space zero or more times

use combine::Parser;
use combine::parser::byte::spaces;
assert_eq!(spaces().parse(&b""[..]), Ok(((), &b""[..])));
assert_eq!(spaces().parse(&b"   "[..]), Ok(((), &b""[..])));