Closed
Description
This is a tracking issue for the unstable slice_bytes
feature in the standard library. This module has some various helper methods for dealing with blocks of bytes in an efficient fashion, but they seem particularly one-off and not necessarily fitting in with the rest of the design of the standard library.
Some drawbacks are:
- A one-off trait
MutableByteVector
is used to give slices theset_memory
method. - A one-off and oddly placed
copy_memory
function is used to provide essentially safe bindings tomemcpy
Both of these can be implemented in stable Rust otherwise and get optimized down to the same implementation, but it's often useful to call them directly to guarantee the optimization will happen. Needs a decision to whether this functionality should be exposed, where it should be exposed, and how.