1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//!
//! This library provides an API similar to pathlib of python.
//! "/" can be used to join the path.
//! [`PathDiv`] is a wrapper for [`PathBuf`].
//!
//! [`PathDiv`]: ./pathdiv/struct.PathDiv.html
//! [`PathBuf`]: https://doc.rust-lang.org/std/path/struct.PathBuf.html
//!
//!
//! # Examples
//!
//! ```
//! use pathdiv::PathDiv;
//!
//! let mut path = PathDiv::from("/etc");
//! path = path / "init.d";
//! path /= "ssh";
//! println!("{}", path); // "/etc/init.d/ssh"
//! ```
//!

pub mod pathdiv;

pub use self::pathdiv::PathDiv;