about summary refs log tree commit diff
path: root/src/rustllvm/PassWrapper.cpp
diff options
context:
space:
mode:
authorScott McMurray <scottmcm@users.noreply.github.com>2017-04-30 23:50:59 -0700
committerScott McMurray <scottmcm@users.noreply.github.com>2017-05-21 01:55:43 -0700
commitc05676b97f2151242a07e98bbde53e9c5d7f1e7a (patch)
tree39dddd3ba1fe72fb5d21b6049ec02b178dcf2683 /src/rustllvm/PassWrapper.cpp
parent0bd9e1f5e6e9832691d033f1cc32409f5e2a9145 (diff)
downloadrust-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/rustllvm/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions