Skip to main content

replace_ext

Function replace_ext 

Source
pub fn replace_ext(path: &str, new_extension: &str) -> Option<String>
Expand description

Replaces the extension in the given path with the provided extension.

This function allows for simple associated file discovery.