Expand description
PathLike and its supporting items, such as PathLikeRef and PathLikeOwned.
This trait and these types provide a common denominator API for Path-like
types and operations in std and no_std contexts.
ยงUsage
- Store a
PathLikeRef<'a>instead of a&'a Pathin structs and enums. - Store a
PathLikeOwnedinstead of aPathBufin structs and enums. - Accept
impl PathLikeinstead ofimpl AsRef<Path>for methods which directly work withPath-like values. - Accept
Into<PathLikeRef<'_>>and/orInto<PathLikeOwned>in methods which will store aPath-like value.
Modulesยง
- path_
like_ ๐impls - Implementations of
PathLikewithin anstdcontext. - path_
like_ ๐owned_ std_ impls - Traits which can only be implemented for
PathLikeOwnedwithstd. - path_
like_ ๐ref_ std_ impls - Traits which can only be implemented for
PathLikeRefwithstd. - sealed ๐
Structsยง
- Path
Like Owned - Abstraction over
PathBufwhich falls back toStringforno_stdcompatibility. - Path
Like Ref - Abstraction over
Pathwhich falls back tostrforno_stdcompatibility.
Traitsยง
- Path
Like - A trait that abstracts over types accepted for conversion to the most featureful path representation possible; that is: