Function repeat_sep

Source
pub fn repeat_sep<Pattern, Sep>(
    pattern: Pattern,
    sep: Sep,
) -> RepeatParser<Pattern, Sep>
Expand description

repeat_sep(pattern, separator) matches the given pattern any number of times, separated by the separator. For example, parser!(repeat_sep(i32, ",")) matches a list of comma-separated integers.

This converts only the bits that match pattern to Rust values, producing a Vec. Any parts of the string matched by separator are not converted.