pub fn is_valid_offset(source: &str, offset: usize) -> bool
Check whether a byte offset is within the bounds of a source string.