I want to point out that, technically, using Deref for this is an anti-pattern, as Deref is intended exclusively for smart pointers. Nothing really wrong with doing this outside of some loss in opacity (and unexpected behaviour if you're writing a library), but it's worth pointing out
OptionOfT|7 months ago
https://github.com/rust-lang/rust/commit/58645e06d9121ae3765...
nixpulvis|7 months ago