We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vec already has:
Vec
impl<'a, T> From<&'a [T]> for Vec<T> where T: Clone
but it should also have:
impl<'a, T> From<&'a mut [T]> for Vec<T> where T: Clone
A workaround is to use Vec::from(my_mut_ref as &[T]).
Vec::from(my_mut_ref as &[T])
The text was updated successfully, but these errors were encountered:
Or my_mut_ref.to_vec(). Though the instance would be nice for genericity, of course.
my_mut_ref.to_vec()
Sorry, something went wrong.
Rollup merge of rust-lang#41530 - GuillaumeGomez:vec-from, r=aturon
e2a0467
Implement From<&mut [T]> for Vec Fixes rust-lang#41386.
No branches or pull requests
Vec
already has:but it should also have:
A workaround is to use
Vec::from(my_mut_ref as &[T])
.The text was updated successfully, but these errors were encountered: