combine::parser::byte

Function spaces

Source
pub fn spaces<I>() -> Spaces<I>
where I: Stream<Item = u8>, I::Error: ParseError<I::Item, I::Range, I::Position>,
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""[..])));