Skip to main content

replace

Function replace 

Source
pub fn replace(
    root: &Path,
    options: &SearchOptions,
    replacement: &str,
    files: &[SearchFile],
) -> Result<ReplaceResult>
Expand description

Every file is verified against its search snapshot, then saved through the editor’s atomic writer.