Function rg3d_core::append_extension[][src]

pub fn append_extension<P: AsRef<Path>, E: AsRef<str>>(
    path: P,
    additional_extension: E
) -> PathBuf
Expand description

Appends specified extension to the path.

Examples

let path = Path::new("foo.bar");
let new_path = append_extension(path, "baz");
assert_eq!(new_path, Path::new("foo.bar.baz"))