Skip to content

No Mutable Slice type exists. #14484

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

Closed
arielb1 opened this issue May 28, 2014 · 1 comment
Closed

No Mutable Slice type exists. #14484

arielb1 opened this issue May 28, 2014 · 1 comment

Comments

@arielb1
Copy link
Contributor

arielb1 commented May 28, 2014

Currently, Rust has a core::raw::Slice type but no core::raw::MutSlice type - and the slice type has a data: _T. This forces people who want to get a *mut T into adding an additional (_T -> *mut T) cast - which may be undefined behaviour.

@arielb1 arielb1 mentioned this issue May 28, 2014
@steveklabnik
Copy link
Member

Adding types to Rust requires an RFC at this point, feel free to make one if you want to see this added to Rust!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants