devela/sys/fs/path/
reexports.rs

1// devela::sys::fs::path::reexports
2//
3//! Reexported items from `core`.
4//
5
6#[allow(unused_imports)]
7use crate::{reexport, TAG_ERROR, TAG_ITERATOR};
8
9/* structs */
10
11reexport! { rust: std::path,
12    tag: TAG_ITERATOR!(),
13    doc: "An iterator over [`Path`] and its ancestors.",
14    @Ancestors as IterPathAncestors
15}
16reexport! { rust: std::path,
17    tag: TAG_ITERATOR!(),
18    doc: "An iterator over the Components of a Path.",
19    @Components as IterPathComponents
20}
21reexport! { rust: std::path,
22    doc: "Helper struct for safely printing paths with [`format!`] and `{}`.",
23    @Display as PathDisplay
24}
25reexport! { rust: std::path,
26    tag: TAG_ITERATOR!(),
27    doc: "An iterator over the [`IterPathComponents`]
28of a [`Path`], as [`OsStr`][crate::OsStr] slices.",
29    @Iter as IterPath
30}
31reexport! { rust: std::path,
32    doc: "A slice of a path (akin to [`str`]).",
33    Path
34}
35reexport! { rust: std::path,
36    doc: "An owned, mutable path (akin to [`String`]).",
37    PathBuf
38}
39reexport! { rust: std::path,
40    doc: "Wraps a Windows path prefix as well as its unparsed string representation.",
41    @PrefixComponent as PathPrefixComponent
42}
43reexport! { rust: std::path,
44    tag: TAG_ERROR!(),
45    doc: "An error returned from [`Path::strip_prefix`] if the prefix was not found.",
46    @StripPrefixError as PathStripPrefixError
47}
48
49/* enums */
50
51reexport! { rust: std::path,
52    doc: "A single component of a path.",
53    @Component as PathComponent
54}
55reexport! { rust: std::path,
56    doc: r"Windows path prefixes, e.g., `C:` or `\\server\share.`",
57    @Prefix as PathPrefix
58}