unsafe fn destroy_overlay_raw(&self, overlay: openvr_sys::VROverlayHandle_t) -> Result<()> {
        let error = self.pin_mut().DestroyOverlay(overlay);
        if error != openvr_sys::EVROverlayError::VROverlayError_None {
            Err(anyhow!("Failed to destroy overlay {:?}", error))
        } else {
            Ok(())
        }
    }
/// Safety: could destroy an overlay that is still owned by a VROverlayHandle.
could destroy an overlay that is still owned by a VROverlayHandle.
could destroy an overlay that is still owned by a VROverlayHandle .
unsafe fn destroy_overlay_raw(&self, overlay: openvr_sys::VROverlayHandle_t) -> Result<()> {
        let error = self.pin_mut().DestroyOverlay(overlay);
        if error != openvr_sys::EVROverlayError::VROverlayError_None {
            Err(anyhow!("Failed to destroy overlay {:?}", error))
        } else {
            Ok(())
        }
    }
unsafe fn destroy_overlay_raw ( & self , overlay : openvr_sys :: VROverlayHandle_t ) -> Result < ( ) > { let error = self . pin_mut ( ) . DestroyOverlay ( overlay ) ; if error != openvr_sys :: EVROverlayError :: VROverlayError_None { Err ( anyhow ! ( " " error ) ) } else { Ok ( ( ) ) } }
Safety: could destroy an overlay that is still owned by a VROverlayHandle.
Safety : could destroy an overlay that is still owned by a VROverlayHandle .
&self
overlay
openvr_sys::VROverlayHandle_t
&self
overlay
openvr_sys::VROverlayHandle_t