diff options
| author | The8472 <git@infinite-source.de> | 2021-08-05 00:23:19 +0200 |
|---|---|---|
| committer | The8472 <git@infinite-source.de> | 2021-08-05 00:23:19 +0200 |
| commit | de91157389c4cf63ee6805e8490d0872fe2a7b33 (patch) | |
| tree | f60762dee327f1ac1778c801088836c6847b8731 /library/std/src/sys/unix/stack_overflow.rs | |
| parent | 6fe0886723c9e08b800c9951f1c6f6a57b2bf22c (diff) | |
| download | rust-de91157389c4cf63ee6805e8490d0872fe2a7b33.tar.gz rust-de91157389c4cf63ee6805e8490d0872fe2a7b33.zip | |
add Box::try_new_zeroed_slice()
Currently there is no API that allows fallible zero-allocation of a Vec. Vec.try_reserve is not appropriate for this job since it doesn't know whether it should zero or arbitrary uninitialized memory is fine. Since Box currently holds most of the zeroing/uninit/slice allocation APIs it's the best place to add yet another entry into this feature matrix.
Diffstat (limited to 'library/std/src/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
