Re:Should small Rust structs be passed by-copy or by-borrow?
by Arnavion on Monday August 26, 2019 @03:58PM
(#20803138)
You want AsRef, not Borrow, unless you need the additional guarantees that Borrow provides (identical comparisons and hashing).
[ Parent
| on HN ]
There are no comments on this comment yet.