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

Method finalize_callback

crates/stdlib/src/_sqlite3.rs:500–509  ·  view source on GitHub ↗
(context: *mut sqlite3_context)

Source from the content-addressed store, hash-verified

498 }
499
500 unsafe extern "C" fn finalize_callback(context: *mut sqlite3_context) {
501 let context = SqliteContext::from(context);
502 let (_, vm) = unsafe { (*context.user_data::<Self>()).retrieve() };
503 let instance = context.aggregate_context::<*const PyObject>();
504 let Some(instance) = (unsafe { (*instance).as_ref() }) else {
505 return;
506 };
507
508 Self::callback_result_from_method(context, instance, "finalize", vm);
509 }
510
511 unsafe extern "C" fn collation_callback(
512 data: *mut c_void,

Callers

nothing calls this directly

Calls 2

retrieveMethod · 0.80
as_refMethod · 0.45

Tested by

no test coverage detected