Crate tuple_map [−] [src]
This library provides 'map' methods to Tuple.
Example
extern crate tuple_map; use tuple_map::*; fn main() { let (x, y) = (3, 4); let (x, y) = (x, y).map(|a| a + 5); assert_eq!(x, 8); assert_eq!(y, 9); }
Notes
This library defines different trait depending on the length of tuple,
like TupleMap1
, TupleMap2
,..., by macro, so same docs are generated for each trait.
Traits
TupleMap1 | |
TupleMap2 | |
TupleMap3 | |
TupleMap4 | |
TupleMap5 | |
TupleMap6 | |
TupleMap7 | |
TupleMap8 | |
TupleMap9 | |
TupleMap10 | |
TupleMap11 | |
TupleMap12 | |
TupleMap13 | |
TupleMap14 | |
TupleMap15 | |
TupleMap16 |