diff options
| author | Scott McMurray <scottmcm@users.noreply.github.com> | 2017-04-30 23:50:59 -0700 |
|---|---|---|
| committer | Scott McMurray <scottmcm@users.noreply.github.com> | 2017-05-21 01:55:43 -0700 |
| commit | c05676b97f2151242a07e98bbde53e9c5d7f1e7a (patch) | |
| tree | 39dddd3ba1fe72fb5d21b6049ec02b178dcf2683 /src/test/run-pass/thinlto | |
| parent | 0bd9e1f5e6e9832691d033f1cc32409f5e2a9145 (diff) | |
| download | rust-c05676b97f2151242a07e98bbde53e9c5d7f1e7a.tar.gz rust-c05676b97f2151242a07e98bbde53e9c5d7f1e7a.zip | |
Add an in-place rotate method for slices to libcore
A helpful primitive for moving chunks of data around inside a slice. In particular, adding elements to the end of a Vec then moving them somewhere else, as a way to do efficient multiple-insert. (There's drain for efficient block-remove, but no easy way to block-insert.) Talk with another example: <https://youtu.be/qH6sSOr-yk8?t=560>
Diffstat (limited to 'src/test/run-pass/thinlto')
0 files changed, 0 insertions, 0 deletions
