#tuple #joining #level #no-std #join

no-std tuple_join

A crate for joining tuples at the type level

1 unstable release

0.1.0 Nov 9, 2023

#5 in #joining

25 downloads per month

MIT/Apache

5KB
94 lines

tuple_join

A crate for joining tuples at the type level.


lib.rs:

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

No runtime deps