Skip to main content

space

Function space 

Source
pub fn space<'t, 's: 't, I>() -> impl Parser<'t, I, (), ParserError<'t, 's>> + Clone
where I: TokenInput<'t, 's>,
Expand description

Match exactly one Token::Space.

Whitespace is a token rather than something skipped implicitly because 5 minutes is a time expression and 5minutes is not. A Space token stands for a whole run of whitespace, so this also covers the repeated one_of(" \t\n\r").at_least(1) the character-level grammar used.