danielhenrymantilla / rust-uninit

Read trait fixed to soundly work with uninitalized memory
MIT License
25 stars 2 forks source link

[Feature Request] Implement Box::new_uninit_slice from rfc `new_uninit` #6

Closed changhe3 closed 2 years ago

changhe3 commented 2 years ago

https://doc.rust-lang.org/stable/std/boxed/struct.Box.html#method.new_uninit_slice

changhe3 commented 2 years ago

This can be implemented as Vec::with_capacity(len).into_backing_buffer_forget_elems().

danielhenrymantilla commented 2 years ago

👍