mozilla/rust — pull request #6590 by bjz (2013-05-18 09:05:09+00:00)
Title: Tuple elements

This commit implements methods for accessing elements for for n-tuples, where n ranges from 2 to 12. 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 methods in use:

~~~rust
assert_eq!((2, "hi", 75.0)._1(), "hi");
~~~