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
pub use self::non_utf8::*;
pub use self::utf8::*;

mod non_utf8 {
    /// [`Path`](crate::Path) that is native to the platform during compilation
    #[cfg(unix)]
    pub type NativePath = crate::unix::UnixPath;

    /// [`PathBuf`](crate::PathBuf) that is native to the platform during compilation
    #[cfg(unix)]
    pub type NativePathBuf = crate::unix::UnixPathBuf;

    /// [`Component`](crate::Component) that is native to the platform during compilation
    #[cfg(unix)]
    pub type NativeComponent<'a> = crate::unix::UnixComponent<'a>;

    /// [`Path`](crate::Path) that is native to the platform during compilation
    #[cfg(windows)]
    pub type NativePath = crate::windows::WindowsPath;

    /// [`PathBuf`](crate::PathBuf) that is native to the platform during compilation
    #[cfg(windows)]
    pub type NativePathBuf = crate::windows::WindowsPathBuf;

    /// [`Component`](crate::Component) that is native to the platform during compilation
    #[cfg(windows)]
    pub type NativeComponent<'a> = crate::windows::WindowsComponent<'a>;
}

mod utf8 {
    /// [`Utf8Path`](crate::Utf8Path) that is native to the platform during compilation
    #[cfg(unix)]
    pub type Utf8NativePath = crate::unix::Utf8UnixPath;

    /// [`Utf8PathBuf`](crate::Utf8PathBuf) that is native to the platform during compilation
    #[cfg(unix)]
    pub type Utf8NativePathBuf = crate::unix::Utf8UnixPathBuf;

    /// [`Utf8Component`](crate::Utf8Component) that is native to the platform during compilation
    #[cfg(unix)]
    pub type Utf8NativeComponent<'a> = crate::unix::Utf8UnixComponent<'a>;

    /// [`Utf8Path`](crate::Utf8Path) that is native to the platform during compilation
    #[cfg(windows)]
    pub type Utf8NativePath = crate::windows::Utf8WindowsPath;

    /// [`Utf8PathBuf`](crate::Utf8PathBuf) that is native to the platform during compilation
    #[cfg(windows)]
    pub type Utf8NativePathBuf = crate::windows::Utf8WindowsPathBuf;

    /// [`Utf8Component`](crate::Utf8Component) that is native to the platform during compilation
    #[cfg(windows)]
    pub type Utf8NativeComponent<'a> = crate::windows::Utf8WindowsComponent<'a>;
}