Trait ParseDot
path_dedot
pub trait ParseDot { fn parse_dot(&self) -> Result<PathBuf>; }
Let Path and PathBuf have parse_dot method.
Path
PathBuf
parse_dot
fn parse_dot(&self) -> Result<PathBuf>
Remove dots in the path and create a new PathBuf instance.
impl ParseDot for Path
impl ParseDot for PathBuf