about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorPhilipp Brüschweiler <blei42@gmail.com>2013-12-02 21:53:23 +0100
committerPhilipp Brüschweiler <blei42@gmail.com>2013-12-02 21:53:23 +0100
commit870fb7d75c3f7b0c18ae7402c387a272866c61a1 (patch)
tree43a8c9f66f2a80c5601882599399797f6584e988 /src/rustllvm/RustWrapper.cpp
parent61443dc1f5089df637edba83587b9f3020063266 (diff)
downloadrust-870fb7d75c3f7b0c18ae7402c387a272866c61a1.tar.gz
rust-870fb7d75c3f7b0c18ae7402c387a272866c61a1.zip
c_vec: Modernize
Generally use more modern constructs (such as using `CVec::new()` as
constructor and move to more method usage).

Potentially controversial changes:
* change `get()` to return a reference instead of cloning
* remove `set()`, add `get_mut()` instead
* add an `unwrap()` method that destroys the CVec without running any
  associated destructor
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions