Expand description
libpath provides path classification for Unix-like and Windows path
syntax. It reports the root, directory, entry name, stem, and extension
as positions into the original input.
The public API is organised under the libpath::util module. The
platform-specific modules expose path_classify() and their associated
classification types.
§Example
use libpath::libpath::util::unix::{path_classify, Classification};
let (classification, _) = path_classify("dir/name.txt", 0);
assert_eq!(Classification::Relative, classification);