If n is smaller than the current vector length, the current value is shortened to its first n character, removing the characters beyond the nth.
If n is greater than the current vector length, the current content is extended by inserting at the end as many elements as needed to reach a size of n.
If args are specified, the new elements are emplaced with parameters args, otherwise, they are ElementType.init.
Resizes the vector to a length of n elements.
If n is smaller than the current vector length, the current value is shortened to its first n character, removing the characters beyond the nth.
If n is greater than the current vector length, the current content is extended by inserting at the end as many elements as needed to reach a size of n.
If args are specified, the new elements are emplaced with parameters args, otherwise, they are ElementType.init.