-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Add [T]::swap_with_slice #44031
Add [T]::swap_with_slice #44031
Conversation
The safe version of a method from ptr, like [T]::copy_from_slice
r? @brson (rust_highfive has picked a reviewer for you, use r? to override) |
Seems like a nifty API to me, thanks! @rust-lang/libs, any thoughts on naming here? I'd sort of be in favor of |
I chose |
I'm ambivalent on the naming, but slightly favor @scottmcm's proposed naming. |
IIRC |
Oh, right, I guess this |
Eh and to be clear I'm not opposed to the name at all, just wanted to pontificate for a bit before merging. |
Ok well sounds like there aren't many other thoughts, so let's just decide this before stabilization @bors: r+ |
📌 Commit c4cb2d1 has been approved by |
Add [T]::swap_with_slice The safe version of a method from `ptr`, like `[T]::copy_from_slice` is. Tracking issue: #44030
☀️ Test successful - status-appveyor, status-travis |
The safe version of a method from
ptr
, like[T]::copy_from_slice
is.Tracking issue: #44030