News for hackers. Stuff that matters.
Re:Should Small Rust Structs be Passed by-copy or by-borrow? by carlmr on Saturday December 31, 2022 @12:05PM (#34198349)
Exactly, and if performance at some point matters: benchmark!

And I would bet 9 times out of 10 it won't be the bottleneck or even make a measurable difference.

Re:Should Small Rust Structs be Passed by-copy or by-borrow? by QuadDamaged on Saturday December 31, 2022 @01:10PM (#34199001)
Exactly why IMHO the rust stdlib is so easy to understand. Ownership only when required as a design principle tends to make the design of the overall system more consistent / easier to approach.