Skip to main content

replace_byte_range

Function replace_byte_range 

Source
pub fn replace_byte_range(
    source: &str,
    start: usize,
    end: usize,
    replacement: &str,
) -> String
Expand description

Replace bytes in [start..end) with replacement.

Panics if start > end or indices are out of bounds for the source.