Crate unordered_n_tuple

Source
Expand description

This crate provides a UnorderedNTuple, which is a struct that represents unordered tuples of n homogenous elements.

§Crate Features

  • std: Enables dependence on std to allow for more features
  • serde: Enabls serializing/deserializing the UnorderedNTuple struct in serde

By default, both features are enabled.

Structs§

UnorderedNTuple
A type which represents an unordered tuple of N elements (i.e. an unordered pair if N == 2, and unordered triplet if N == 3, and so on).

Type Aliases§

UnorderedPair
An UnorderedPair is a special subtype of UnorderedNTuple for only 2 elements. This has been given its own type for ease of use.