Skip to main content

is_valid_offset

Function is_valid_offset 

Source
pub fn is_valid_offset(source: &str, offset: usize) -> bool
Expand description

Check whether a byte offset is within the bounds of a source string.