1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-12-04 10:08:50 +02:00
Files
comprehensive-rust/src/traits
Marshall Pierce 0a9dd33e58 Create an empty rather than pre-allocating
It might give the impression that you can only write to a Vec that has capacity, when in fact Vec's Write impl will grow the storage as needed. While pre-allocating is probably a good efficiency win in many circumstances, I think it's probably worth minimizing the number of concepts in play in this example.
2023-01-06 09:47:42 -07:00
..
2022-12-21 16:38:28 +01:00
2022-12-21 16:38:28 +01:00
2022-12-21 16:38:28 +01:00
2022-12-21 16:38:28 +01:00
2022-12-21 16:38:28 +01:00
2022-12-21 16:38:28 +01:00
2022-12-21 16:38:28 +01:00