MCPcopy Create free account
hub / github.com/davidblewett/rure-python / Split

Class Split

regex/src/re_bytes.rs:733–736  ·  view source on GitHub ↗

Yields all substrings delimited by a regular expression match. `'r` is the lifetime of the compiled regular expression and `'t` is the lifetime of the byte string being split.

Source from the content-addressed store, hash-verified

731/// `'r` is the lifetime of the compiled regular expression and `'t` is the
732/// lifetime of the byte string being split.
733pub struct Split<'r, 't> {
734 finder: Matches<'r, 't>,
735 last: usize,
736}
737
738impl<'r, 't> Iterator for Split<'r, 't> {
739 type Item = &'t [u8];

Callers 2

fillMethod · 0.70
fill_splitMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected