@@ -21,38 +21,38 @@ use vec;
21
21
use vec:: { CopyableVector , OwnedCopyableVector , OwnedVector } ;
22
22
use vec:: { ImmutableEqVector , ImmutableVector } ;
23
23
24
- pub mod posix;
25
- pub mod windows;
26
-
27
24
/// Typedef for POSIX file paths.
28
25
/// See `posix::Path` for more info.
29
- pub type PosixPath = posix:: Path ;
26
+ pub use PosixPath = self :: posix:: Path ;
30
27
31
28
/// Typedef for Windows file paths.
32
29
/// See `windows::Path` for more info.
33
- pub type WindowsPath = windows:: Path ;
30
+ pub use WindowsPath = self :: windows:: Path ;
34
31
35
32
/// Typedef for the platform-native path type
36
33
#[ cfg( unix) ]
37
- pub type Path = PosixPath ;
34
+ pub use Path = self :: posix :: Path ;
38
35
/// Typedef for the platform-native path type
39
36
#[ cfg( windows) ]
40
- pub type Path = WindowsPath ;
37
+ pub use Path = self :: windows :: Path ;
41
38
42
39
/// Typedef for the POSIX path component iterator.
43
40
/// See `posix::ComponentIter` for more info.
44
- pub type PosixComponentIter < ' self > = posix:: ComponentIter < ' self > ;
41
+ pub use PosixComponentIter = self :: posix:: ComponentIter ;
45
42
46
- // // / Typedef for the Windows path component iterator.
47
- // // / See `windows::ComponentIter` for more info.
48
- // pub type WindowsComponentIter<'self> = windows::ComponentIter<'self> ;
43
+ /// Typedef for the Windows path component iterator.
44
+ /// See `windows::ComponentIter` for more info.
45
+ pub use WindowsComponentIter = self :: windows:: ComponentIter ;
49
46
50
47
/// Typedef for the platform-native component iterator
51
48
#[ cfg( unix) ]
52
- pub type ComponentIter < ' self > = PosixComponentIter < ' self > ;
53
- // /// Typedef for the platform-native component iterator
54
- //#[cfg(windows)]
55
- //pub type ComponentIter<'self> = WindowsComponentIter<'self>;
49
+ pub use ComponentIter = self :: posix:: ComponentIter ;
50
+ /// Typedef for the platform-native component iterator
51
+ #[ cfg( windows) ]
52
+ pub use ComponentIter = self :: windows:: ComponentIter ;
53
+
54
+ pub mod posix;
55
+ pub mod windows;
56
56
57
57
// Condition that is raised when a NUL is found in a byte vector given to a Path function
58
58
condition ! {
0 commit comments