Available on
doc
or test
only.Expand description
§tupl
modifications
(↑) This is derived work from the
tupl
crate,
including the following modifications:
- impl for tuples of arity 12, 24, 36, 48 or 72, via features.
- add the
ARITY
associated constant with the arity of the tuple. - add the
MAX_ARITY
associated constant with the maximum supported arity. - add a method
fmt
to wrap it inTupleFmt
allowing toDisplay
andDebug
tuples. - remove the
GrowableTuple
andNonEmptyTuple
traits, moving their methods toTuple
. - rename methods:
truncate_head
tosplit_head
,truncate_tail
tosplit_tail
. - rename types:
TruncateHead
toNoHead
,TruncateTail
toNoTail
. - add methods:
nth
,nth_clone
,nth_ref
,nth_mut
. - add associated enums:
TupleElement
,TupleElementRef
,TupleElementMut
. - add one associated type per tuple index field.
- rename the identifiers and other misc. refactoring.
- replace the macro code generation with build script.