about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-05-18 03:13:28 -0700
committerbors <bors@rust-lang.org>2013-05-18 03:13:28 -0700
commiteb0e2f45ec5eb84ac3b30e7ce92fb70415d232d3 (patch)
treeac322341677763241ce17a22bf680d1cb7cebf4d /src/rustllvm/RustWrapper.cpp
parente91daaa8a9390ccf760b3ba7f965b2863103d993 (diff)
parentb6038b76339deefc340fa709009a7bea069270e4 (diff)
downloadrust-eb0e2f45ec5eb84ac3b30e7ce92fb70415d232d3.tar.gz
rust-eb0e2f45ec5eb84ac3b30e7ce92fb70415d232d3.zip
auto merge of #6591 : bjz/rust/tuple-elements, r=thestinger
This commit implements element getters for tuples with an arity of 2 to 12. The getters return references to the elements, so no copying occurs. The traits are re-exported in `core::prelude` so you can use them from regular Rust code.

Here is an example of one of the getters in use:

~~~rust
assert_eq!((2, "hi", 75.0).n1(), &"hi");
~~~
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions