Skip to main content

find_occurrences

Function find_occurrences 

Source
pub fn find_occurrences(source: &str, needle: &str) -> Vec<Span>
Expand description

Byte-level occurrences of needle in source (non-overlapping, left to right) — the string side of the t2c/isolate consumption pattern.