Skip to main content

replace_at

Function replace_at 

Source
pub fn replace_at(
    content: &str,
    range: Range<usize>,
    replacement: &str,
) -> String
Expand description

Replace the character range range of content with replacement.

Char-indexed, so multi-byte text and emoji never split a codepoint. A range past the end clamps to the length.