diff options
| author | bors <bors@rust-lang.org> | 2013-05-18 03:13:28 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-05-18 03:13:28 -0700 |
| commit | eb0e2f45ec5eb84ac3b30e7ce92fb70415d232d3 (patch) | |
| tree | ac322341677763241ce17a22bf680d1cb7cebf4d /src/rustllvm/RustWrapper.cpp | |
| parent | e91daaa8a9390ccf760b3ba7f965b2863103d993 (diff) | |
| parent | b6038b76339deefc340fa709009a7bea069270e4 (diff) | |
| download | rust-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
