Function state
fn state<'i, R: RuleType, F>(input: &'i str, f: F) -> Result<Pairs<'i, R>, Error<R>>
where
F: FnOnce(Box<ParserState<'i, R>>) -> ParseResult<Box<ParserState<'i, R>>>
Creates a ParserState from a &str, supplying it to a closure f.
Examples
# use pest;
let input = "";
.unwrap;