[][src]Function range_split::str::is_valid_range

pub fn is_valid_range<S, R>(s: S, range: &R) -> bool where
    S: AsRef<str>,
    R: RangeBounds<usize>, 

Checks that range is valid for splitting the string slice s.

The range is valid if it fits within the slice and its bounds are on UTF-8 code point boundaries.