Function add_extension

Source
pub fn add_extension<P: AsRef<Path>, S: AsRef<OsStr>>(
    this: P,
    extension: S,
) -> Option<PathBuf>