Tuples group values of different types into a fixed length (accessed by index like tup.0 or destructuring). Arrays ([T; N]) store elements of the same type with a fixed length on the stack (use Vec<T> when you need a growable list).
ADVERTISEMENT