add back missing `ptr_eq` method