]> git.lizzy.rs Git - rust.git/commit
Expose more of std::path
authorAaron Turon <aturon@mozilla.com>
Thu, 12 Feb 2015 00:57:23 +0000 (16:57 -0800)
committerAaron Turon <aturon@mozilla.com>
Mon, 16 Feb 2015 21:53:09 +0000 (13:53 -0800)
commit4a9dd3f8403f84ad518b0119fa2312c379df5dd7
tree5391b0b4ce4e82a704318b45267c14c596e3700c
parente29f42025513374f1a88404491d1b40386acf994
Expose more of std::path

This commit exposes the `is_sep` function and `MAIN_SEP` constant, as
well as Windows path prefixes. The path prefix enum is safely exposed on
all platforms, but it only yielded as a component for Windows.

Exposing the prefix enum as part of prefix components involved changing
the type from `OsStr` to the `Prefix` enum, which is a:

[breaking-change]
src/libstd/path.rs