c6807bb1b2
Add the `alloc::prelude` module It contains the re-exports that are in `std::prelude::v1` but not in `core::prelude::v1`. Calling it prelude is somewhat of a misnomer since (unlike those modules in `std` or `core`) its contents are never implicitly imported in modules. Rather it is intended to be used with an explicit glob import like `use alloc::prelude::*;`. However there is precedent for the same misnomer with `std::io::prelude`, for example. This new module is unstable with the same feature name as the `alloc` care. They are proposed for stabilization together in RFC https://github.com/rust-lang/rfcs/pull/2480. |
||
---|---|---|
.. | ||
benches | ||
collections | ||
tests | ||
alloc.rs | ||
borrow.rs | ||
boxed_test.rs | ||
boxed.rs | ||
Cargo.toml | ||
fmt.rs | ||
lib.rs | ||
macros.rs | ||
prelude.rs | ||
raw_vec.rs | ||
rc.rs | ||
repeat-generic-slice.rs | ||
slice.rs | ||
str.rs | ||
string.rs | ||
sync.rs | ||
task.rs | ||
vec.rs |