pub trait PathExt {
// Required method
fn with_all_extensions(&self, new_ext: &str) -> PathBuf;
}Required Methods§
Sourcefn with_all_extensions(&self, new_ext: &str) -> PathBuf
fn with_all_extensions(&self, new_ext: &str) -> PathBuf
Return a new PathBuf with all existing extensions removed and
replaced with new_ext.
ex: “foo.tar.gz” with new_ext="zip" becomes “foo.zip”