Re:100 days with Rust: a series of brick walls
by steveklabnik on Saturday March 24, 2018 @09:20AM
(#16666457)
It's just a tradeoff, like any other. If you use a generic, you add complexity, but can accept a wider set of types. If you don't, things are simpler, but you accept a smaller set of types. I personally find the AsRef to almost always be overkill. YMMV.
[ Parent
| on HN ]
There are no comments on this comment yet.