Closed dtolnay closed 2 months ago
Vec's into_iter/map/collect has an optimization to run in-place if the original and mapped type are the same size and alignment, which is always the case for fold.
into_iter
map
collect
Vec's
into_iter
/map
/collect
has an optimization to run in-place if the original and mapped type are the same size and alignment, which is always the case for fold.