Expand description
A library for parsing, manipulating Paths that follow unix style conventions.
This is similar to how the standard library’s Path works, but may have less features.
For simplicity, this uses str and String instead of OsStr and OsString.
Makes it much easier to work with.
Macros§
- impl_
cmp 🔒
Structs§
- Ancestors
- An iterator over
Pathand its ancestors. - Components
- An iterator over the
Components of aPath. - Display
- Iter
- An iterator over the
Components of aPath, asstrslices. - Path
- A slice of a path (akin to
str). - PathBuf
- An owned, mutable path (akin to
String). - Strip
Prefix Error - An error returned from
Path::strip_prefixif the prefix was not found.
Enums§
- Component
- A single component of a path.
- State 🔒
- Component parsing works by a double-ended state machine; the cursors at the front and back of the path each keep track of what parts of the path have been consumed so far.
Constants§
- SEPARATOR
- use unix paths separator
Functions§
- has_
root 🔒 - Check if the first char is
/ - is_
separator - is_
separator_ 🔒byte - iter_
after 🔒