pub fn replace_byte_range(
source: &str,
start: usize,
end: usize,
replacement: &str,
) -> Result<String, AftError>Expand description
Replace bytes in [start..end) with replacement.
Returns an error if the range is invalid or does not align to UTF-8 char boundaries.