It's doing the following cast:
&mut DeviceHandle -> *mut DeviceHandle -> *mut c_void
(with the pointer types being solved for automatically by the compiler)