diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2014-11-15 14:44:55 +1100 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2014-11-25 17:10:32 +1100 |
| commit | b86a7808c74fa0da1f1fcb9b7df760314f9e4104 (patch) | |
| tree | 40bc88044c4b03681b4c67d2b4373e0649e8c95f /src/rustllvm/RustWrapper.cpp | |
| parent | bb2168c5252adeda1dd35ccf7050df89655233d7 (diff) | |
| download | rust-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
