News for hackers. Stuff that matters.
Re:Should Small Rust Structs be Passed by-copy or by-borrow? by ok123456 on Saturday December 31, 2022 @02:44PM (#34199966)
Then knock off trying to use Rust as a systems language. Linear types make refactoring this nearly impossible if it does become and issue.
Re:Should Small Rust Structs be Passed by-copy or by-borrow? by tialaramex on Saturday December 31, 2022 @02:58PM (#34200113)
Works really nice for me, of course, I actually measure what I'm doing.

You edited your comment, so I guess I will too: Rust doesn't actually have Linear types. Linear types ("must use or compile error") would be tricky to provide, Aria blogged about it back in the day. So that's definitely going to be a problem with your refactoring.