Skip to main content

opt_space

Function opt_space 

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

Match an optional Token::Space.

The token-level replacement for text::whitespace(). Combine it with Parser::padded_by to replace a top-level .padded().