mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-26 07:25:48 +00:00
a828e79480
This commit tweaks the interface of the `std::env` module to make it more ergonomic for common usage: * `env::var` was renamed to `env::var_os` * `env::var_string` was renamed to `env::var` * `env::args` was renamed to `env::args_os` * `env::args` was re-added as a panicking iterator over string values * `env::vars` was renamed to `env::vars_os` * `env::vars` was re-added as a panicking iterator over string values. This should make common usage (e.g. unicode values everywhere) more ergonomic as well as "the default". This is also a breaking change due to the differences of what's yielded from each of these functions, but migration should be fairly easy as the defaults operate over `String` which is a common type to use. [breaking-change] |
||
---|---|---|
.. | ||
target | ||
abi.rs | ||
archive.rs | ||
arm.rs | ||
fs.rs | ||
lib.rs | ||
mips.rs | ||
mipsel.rs | ||
rpath.rs | ||
sha2.rs | ||
svh.rs | ||
target_strs.rs | ||
x86_64.rs | ||
x86.rs |