about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorPietro Albini <pietro@pietroalbini.org>2018-09-22 09:56:24 +0200
committerGitHub <noreply@github.com>2018-09-22 09:56:24 +0200
commite6ee4e056d7855cb0353efbb4207dceb9ab46414 (patch)
tree03008edb114b5d49c17a0c348c1232c270d85a8b /src/libsyntax/parse
parentc97b60ff3fcf1830e7e19ceeaea4046dc126911d (diff)
parentd0e59f563d11a0d8efbe9a59e7b20526bc42adce (diff)
downloadrust-e6ee4e056d7855cb0353efbb4207dceb9ab46414.tar.gz
rust-e6ee4e056d7855cb0353efbb4207dceb9ab46414.zip
Rollup merge of #53652 - oconnor663:copy_in_place, r=alexcrichton
define copy_within on slices

This is a safe wrapper around `ptr::copy`, for regions within a single slice. Previously, safe in-place copying was only available as a side effect of `Vec::drain`.

I've wanted this API a couple times in the past, and I figured I'd just whip up a PR to help discuss it. It's possible something like this exists elsewhere and I just missed it. It might also be a big enough addition to warrant an RFC, I'm not sure.
Diffstat (limited to 'src/libsyntax/parse')
0 files changed, 0 insertions, 0 deletions