msg_tool 0.4.0-alpha.3

A command-line tool for exporting, importing, packing, and unpacking script files.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Extensions for std::path

pub trait PathBufExt {
    /// Remove all extensions from the path.
    fn remove_all_extensions(&mut self);
}

impl PathBufExt for std::path::PathBuf {
    fn remove_all_extensions(&mut self) {
        while self.extension().is_some() {
            self.set_extension("");
        }
    }
}