tuplestructops

Crates.iotuplestructops
lib.rstuplestructops
version0.3.0
sourcesrc
created_at2022-06-27 06:19:37.78405
updated_at2022-06-29 17:15:49.009224
descriptionStructural manipulations for tuples
homepage
repositoryhttps://github.com/jsgf/tuplestructops
max_upload_size
id613952
size9,728
Jeremy Fitzhardinge (jsgf)

documentation

https://docs.rs/tuplestructops/

README

Structural operations for Tuples

This crate implements three operations for tuples:

  • join
  • split
  • index

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

  • tuple_24
  • tuple_32

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.

Commit count: 21

cargo fmt