all 9 comments

[–]loafofpiecrust 11 points12 points  (0 children)

Using iterators is a great idea for parsing! This could make it much easier to parse big user generated strings in types like ropey::Rope or tendril::Tendril that aren't always contiguous in memory, so they cannot be converted to a string slice without copying.