Rust tip: if you implement `Borrow<B>` and `Hash` for a type `Ty`, then for all `x: Ty`, `hash(x) == hash(x.borrow())` must be true. If this property does not hold, then objects of type `Ty` won't work properly with hashmaps.
1
1
27
I wonder if a generic impl along the lines of gist.github.com/kinnison/001โฆ might work?
May 30, 2019 ยท 7:27 AM UTC

