MCPcopy Index your code
hub / github.com/RustPython/RustPython / progress_callback

Method progress_callback

crates/stdlib/src/_sqlite3.rs:608–616  ·  view source on GitHub ↗
(data: *mut c_void)

Source from the content-addressed store, hash-verified

606 }
607
608 unsafe extern "C" fn progress_callback(data: *mut c_void) -> c_int {
609 let (callable, vm) = unsafe { (*data.cast::<Self>()).retrieve() };
610 if let Ok(val) = callable.call((), vm)
611 && let Ok(val) = val.is_true(vm)
612 {
613 return val as c_int;
614 }
615 -1
616 }
617
618 fn callback_result_from_method(
619 context: SqliteContext,

Callers

nothing calls this directly

Calls 3

retrieveMethod · 0.80
is_trueMethod · 0.80
callMethod · 0.45

Tested by

no test coverage detected