-
Notifications
You must be signed in to change notification settings - Fork 13k
New issue
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
There should be an impl<T> AsMut<[T]> for Vec<T>
.
#28549
Comments
Yes, and |
bluss
added a commit
to bluss/rust
that referenced
this issue
Sep 25, 2015
Since it landed now, it should appear first in Rust 1.5 (and will be stable). |
Thank you! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In GJ I have this trait like this:
I'd like to switch the bound on
T
to beT: AsMut<[u8]>
, but then I can no longer use a bareVec<u8>
forT
, because there is currently noimpl<T> AsMut<[T]> for Vec<T>
.It seems to me that such an impl ought to exist, especially because
impl<T> AsRef<[T]> for Vec<T>
already exists.The text was updated successfully, but these errors were encountered: