Would there be any blockers to providing an API accepting &mut [MaybeUninit<u8>] and using MaybeUninit::write internally? The advantage being enabling APIs like BytesMut::spare_capacity_mut to avoid zeroing out allocated bytes to get a &mut [u8]. Is there an alternative?
Would there be any blockers to providing an API accepting
&mut [MaybeUninit<u8>]and usingMaybeUninit::writeinternally? The advantage being enabling APIs likeBytesMut::spare_capacity_mutto avoid zeroing out allocated bytes to get a&mut [u8]. Is there an alternative?