opt_ptr_eq

Function opt_ptr_eq 

Source
pub fn opt_ptr_eq<T>(a: Option<&T>, b: Option<&T>) -> bool
Expand description

Surprisingly, there’s no way in Rust to do a ptr::eq on Option<&T>. Uses unsafe so that the debug performance isn’t too bad.