3 ms·
Won't the final result allocate?
by mwkaufma 2y ago
Won't the final result allocate?
- steveklabnik 2y agoIt won't allocate in this case because it's still a vec of foo at the end, so we know it has enough space. If it were a different type, it may or may not allocate, depending on if it had enough capacity.