devela/sys/path/
reexports.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
// devela::sys::path::reexports
//
//! Reexported items from `core`.
//

#[allow(unused_imports)]
use crate::{reexport, TAG_ERROR, TAG_ITERATOR};

/* structs */

reexport! { rust: std::path,
    tag: TAG_ITERATOR!(),
    doc: "An iterator over [`Path`] and its ancestors.",
    @Ancestors as IterPathAncestors
}
reexport! { rust: std::path,
    tag: TAG_ITERATOR!(),
    doc: "An iterator over the Components of a Path.",
    @Components as IterPathComponents
}
reexport! { rust: std::path,
    doc: "Helper struct for safely printing paths with [`format!`] and `{}`.",
    @Display as PathDisplay
}
reexport! { rust: std::path,
    doc: "An iterator over the [`IterPathComponents`]
of a [`Path`], as [`OsStr`][crate::OsStr] slices.",
    @Iter as IterPath
}
reexport! { rust: std::path,
    doc: "A slice of a path (akin to [`str`]).",
    Path
}
reexport! { rust: std::path,
    doc: "An owned, mutable path (akin to [`String`]).",
    PathBuf
}
reexport! { rust: std::path,
    doc: "Wraps a Windows path prefix as well as its unparsed string representation.",
    @PrefixComponent as PathPrefixComponent
}
reexport! { rust: std::path,
    tag: TAG_ERROR!(),
    doc: "An error returned from [`Path::strip_prefix`] if the prefix was not found.",
    @StripPrefixError as PathStripPrefixError
}

/* enums */

reexport! { rust: std::path,
    doc: "A single component of a path.",
    @Component as PathComponent
}
reexport! { rust: std::path,
    doc: r"Windows path prefixes, e.g., `C:` or `\\server\share.`",
    @Prefix as PathPrefix
}