Function iterator
fn iterator<Input, Error, F>(input: Input, f: F) -> ParserIterator<Input, Error, F>
where
F: Parser<Input>,
Error: ParseError<Input>
Creates an iterator from input data and a parser.
Call the iterator's [ParserIterator::finish] method to get the remaining input if successful, or the error value if we encountered an error.
On Err::Error, iteration will stop. To instead chain an error up, see cut.
use ;
use HashMap;
let data = "abc|defg|hijkl|mnopqr|123";
let mut it = iterator;
let parsed = it.by_ref.map.;
let res: = it.finish;
assert_eq!;
assert_eq!;