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
Couldn't the for loop in Vec::from_array be replaced with ptr::copy_nonoverlapping::<T>(ptr::from_ref(&src).cast(), v.buffer.as_mut_ptr().cast(), M)? Then it could be const on 1.83.
Then it would be useful to mark String::from_utf8_unchecked const.
When creating a vec, is it possible to use const fn so that the values can be prepared from the beginning?
The text was updated successfully, but these errors were encountered: