Lyricdev
GitHub

struct SplitIter

pub struct SplitIter<P :: [Pattern]> :: [Iterator]

Conforms to Iterator.

Iterates over a text's parts between a pattern's matches, as views of it.

at is where the next part begins, -1 once the last was given; left is how many parts splitN still gives, -1 without a bound.

Methods

pub mut fn next(): ?StringView