fn with_state<S, State, O, ParseNext, E>(
parse_next: ParseNext,
) -> impl Parser<S, O, E>where
S: TokenStream,
State: Default,
ParseNext: Parser<Stateful<S, State>, O, E>,
E: ParserError<S>,
Expand description
Accept a subparser contains a given state.
The state will be constructed using Default::default()
.