(
ctxt: *mut c_void,
progress: usize,
total: usize,
)
| 5 | fn progress(&mut self, progress: usize, total: usize) -> bool; |
| 6 | |
| 7 | unsafe extern "C" fn cb_progress_callback( |
| 8 | ctxt: *mut c_void, |
| 9 | progress: usize, |
| 10 | total: usize, |
| 11 | ) -> bool { |
| 12 | let ctxt: &mut Self = &mut *(ctxt as *mut Self); |
| 13 | ctxt.progress(progress, total) |
| 14 | } |
| 15 | |
| 16 | #[allow(clippy::wrong_self_convention)] |
| 17 | unsafe fn into_raw(&mut self) -> *mut c_void { |
nothing calls this directly
no test coverage detected