Re:Fast Rust Builds
by scottlamb on Sunday September 05, 2021 @04:14PM
(#28427376)
You can chain calls in Rust. If read_to_end were written to allocate and return a fresh Vec, you could do this:
but instead read_to_end is written to take a presupplied Vec so the caller has the option to reduce allocations.
[ Parent
| on HN ]
There are no comments on this comment yet.