I am frequently annoyed by the lack of a standard function to convert
Option<&T> and friends to a pointer. Sure it’s possible to write code to do this manually, but this is unnecessary busy work for something that is simple and generally useful. Plus, there’s always the suspicion when you do it yourself of whether or not the compiler correctly optimizes it.
In my case I’m not using it for unsafe FFI, but rather for comparisons and hashmaps where I want to use reference equality rather than deep equality as is the default.
I believe this has previously been requested on Github, but it didn’t go anywhere.