pub fn append<Init, Last>(init: Init, last: Last) -> Append<Init, Last>where
(Init, Last): TupleAppend<Init, Last>,
Available on crate feature
append
only.Expand description
Append an element to a tuple.
use tupleops::append;
assert_eq!(
append((1, 2, 3), 4),
(1, 2, 3, 4),
);
See also: Append, TupleAppend.