mozilla/rust — pull request #6591 by bjz (2013-05-18 09:07:12+00:00)
Title: Create tuple element accessor traits

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");
~~~