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

Method inverse_callback

crates/stdlib/src/_sqlite3.rs:552–564  ·  view source on GitHub ↗
(
            context: *mut sqlite3_context,
            argc: c_int,
            argv: *mut *mut sqlite3_value,
        )

Source from the content-addressed store, hash-verified

550 }
551
552 unsafe extern "C" fn inverse_callback(
553 context: *mut sqlite3_context,
554 argc: c_int,
555 argv: *mut *mut sqlite3_value,
556 ) {
557 let context = SqliteContext::from(context);
558 let (_, vm) = unsafe { (*context.user_data::<Self>()).retrieve() };
559 let args = unsafe { core::slice::from_raw_parts(argv, argc as usize) };
560 let instance = context.aggregate_context::<*const PyObject>();
561 let instance = unsafe { &**instance };
562
563 Self::call_method_with_args(context, instance, "inverse", args, vm);
564 }
565
566 unsafe extern "C" fn authorizer_callback(
567 data: *mut c_void,

Callers

nothing calls this directly

Calls 1

retrieveMethod · 0.80

Tested by

no test coverage detected