Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
mwkaufma
1y ago
0 comments
Save
Share
Won't the final result allocate?
0 comments
1 comments · 1 top-level
top
newest
oldest
steveklabnik
1y ago
It 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.
j
/
k
navigate · click thread line to collapse