You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the ToLexical APIs, they take the destination buffer as type &mut [u8]. According to Rust's soundness rules, this requires the buffer to be initialized before calling to_lexical or to_lexical_unchecked, even though both of those functions only write to the buffer. I'd like to use ToLexical on uninitialized buffers (such as Vec::spare_capacity_mut).
Solution
Can we have a variant of the ToLexical APIs to take the destination buffer as type &mut [MaybeUninit<u8>]?