rust/library/alloc
Jan Behrens 0227b71865 Add guarantee that Vec::default() does not alloc
Currently `Vec::new()` is guaranteed to not allocate until elements are
pushed onto the `Vec`, but such a guarantee is missing for `Vec`'s
implementation of `Default::default`. This adds such a guarantee for
`Vec::default()` to the API reference.
2022-08-22 12:36:44 +02:00
..
benches Optimized vec::IntoIter::next_chunk impl 2022-07-26 20:31:43 +02:00
src Add guarantee that Vec::default() does not alloc 2022-08-22 12:36:44 +02:00
tests Replace most uses of pointer::offset with add and sub 2022-08-21 02:21:41 +04:00
Cargo.toml Switch all libraries to the 2021 edition 2021-12-23 19:03:47 +08:00