Function span

Source
pub fn span(whole: &str, part: &str) -> Range<usize> 
Expand description

Return the span of a string slice part relative to a string slice whole.

The caller must ensure that part is fully contained inside whole.