(&mut self)
| 21 | |
| 22 | impl Drop for Surface { |
| 23 | fn drop(&mut self) { |
| 24 | unsafe { |
| 25 | // drop the descriptor, which causes the array inside it to be dropped too |
| 26 | if false { |
| 27 | let res = self.resource_desc(); |
| 28 | if let Ok(res) = res { |
| 29 | let _ = ManuallyDrop::into_inner(res); |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | cuSurfObjectDestroy(self.handle); |
| 34 | } |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | pub type SurfaceHandle = c_ulonglong; |
nothing calls this directly
no test coverage detected