about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorHuon Wilson <dbau.pp+github@gmail.com>2014-11-15 14:44:55 +1100
committerHuon Wilson <dbau.pp+github@gmail.com>2014-11-25 17:10:32 +1100
commitb86a7808c74fa0da1f1fcb9b7df760314f9e4104 (patch)
tree40bc88044c4b03681b4c67d2b4373e0649e8c95f /src/rustllvm/RustWrapper.cpp
parentbb2168c5252adeda1dd35ccf7050df89655233d7 (diff)
downloadrust-b86a7808c74fa0da1f1fcb9b7df760314f9e4104.tar.gz
rust-b86a7808c74fa0da1f1fcb9b7df760314f9e4104.zip
Add methods to go from a slice iterators to a slice.
A slice iterator is isomorphic to a slice, just with a slightly
different form: storing start and end pointers rather than start pointer
and length. This patch reflects this by making converting between them
as easy as `iter.as_slice()` (or even `iter[]` if the shorter lifetime
is ok). That is, `slice.iter().as_slice() == slice`.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions