Skip to main content

splice

Function splice 

Source
pub fn splice(
    file: &str,
    text: &str,
    name: &str,
    content: &str,
) -> Result<String, String>
Expand description

text, the contents of file, with region name replaced by content. An error when the region’s markers are missing.