Cross-platform path manipulation.
This module provides two types,
Path (akin to
str), for working with paths abstractly. These types are thin wrappers
OsStr respectively, meaning that they work directly
on strings according to the local platform's path syntax.
Paths can be parsed into
Components by iterating over the structure
returned by the [
components] method on
correspond to the substrings between path separators (
\). You can
reconstruct an equivalent path from components with the [
push] method on
PathBuf; note that the paths may differ syntactically by the
normalization described in the documentation for the [
An iterator over
Helper struct for safely printing paths with
A slice of a path (akin to
An owned, mutable path (akin to
A structure wrapping a Windows path prefix as well as its unparsed string representation.
An error returned from
A single component of a path.
Windows path prefixes, e.g.,
The primary separator of path components for the current platform.
Determines whether the character is one of the permitted path separators for the current platform.