Crate tuple_join

Source
Expand description

A crate for joining tuples at the type level.

Supports up to tuple length 13.

§Examples

use tuple_join::*;
 
assert_eq!((1,2).join((3,4,5,6)), (1,2,3,4,5,6));
assert_eq!((1,2,3,4,5,6).split(), ((1,2), (3,4,5,6)));
 
assert_eq!((1,2,3).push("hello"), (1,2,3,"hello"));
assert_eq!(("ferris", "the", "rustacean").pop(), (("ferris", "the"), "rustacean"));

Traits§

Append
Append a regular type to a tuple type.
Appended
Split a regular from a tuple type.
Join
Join 2 tuple types as the associated type.
Joined
Split two tuple types from a tuple type.