Skip to main content

replace_range

Function replace_range 

Source
pub fn replace_range(
    src: &str,
    start: Loc,
    end: Loc,
    text: &str,
) -> Result<String, EditError>
Expand description

Replaces the half-open range start..end with text.

ยงErrors

When a point is outside the source, or end is before start.