| Crates.io | tuplestructops |
| lib.rs | tuplestructops |
| version | 0.3.0 |
| created_at | 2022-06-27 06:19:37.78405+00 |
| updated_at | 2022-06-29 17:15:49.009224+00 |
| description | Structural manipulations for tuples |
| homepage | |
| repository | https://github.com/jsgf/tuplestructops |
| max_upload_size | |
| id | 613952 |
| size | 9,728 |
This crate implements three operations for tuples:
For example, you can simply concatenate two tuples with:
use tuplestructops::TupleJoin;
let concat = (1, 'b', 3).join(('a', 5, 'c'));
This crate focuses purely on the overall structure of tuples, and is completely agnostic to the types of their elements.
The implementations are O(N^2) in the number of tuple elements. By default they're implemented for up to 16 elements, but the additional
features allow the traits to be implemented for more elements.
The impl_docs feature enables documentation of the trait implementations for
all the tuple types. It is disabled by default since it's very repetitive.