The built-in vec.chunks(5) splits given collection into chunks of 5 items. Number of chunks is determined based on collection size.
However, there's no built-in utility for splitting collection into 5 chunks, where chunk sizes are determined based on collection size.
There are crates like itertools but it's an overkill to add a new dependency for such simple utility.
Created a simple trait that adds this functionality.