| Crates.io | tuple_length |
| lib.rs | tuple_length |
| version | 0.2.0 |
| created_at | 2023-01-11 10:36:29.705572+00 |
| updated_at | 2023-02-13 13:13:48.71532+00 |
| description | Library for determining the length of a tuple. |
| homepage | https://github.com/pic16f877ccs/tuple_tool |
| repository | https://github.com/pic16f877ccs/tuple_tool |
| max_upload_size | |
| id | 756300 |
| size | 5,656 |
Return the length of a tuple.
Usage:
use tuple_length::TupLen;
assert_eq!(().len(), 0);
assert_eq!((1i8,).len(), 1);
assert_eq!((1u16, 2u64).len(), 2);
assert_eq!((1i8, 2usize, 3i64).len(), 3);
Possible length 8, 16, 32, 64. By default the selected operations are implemented to tuples upto a length of 8 elements.
You can specify the length: features = ["16"] or features = ["32"] or features = ["64"].