Function combine::parser::byte::spaces[][src]

pub fn spaces<Input>() -> impl Parser<Input, Output = ()> where
    Input: Stream<Token = u8>,
    Input::Error: ParseError<Input::Token, Input::Range, Input::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""[..])));