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

Function into_func

crates/vm/src/function/builtin.rs:49–51  ·  view source on GitHub ↗
(f: F)

Source from the content-addressed store, hash-verified

47}
48
49const fn into_func<F: IntoPyNativeFn<Kind>, Kind>(f: F) -> impl PyNativeFn {
50 move |vm: &VirtualMachine, args| f.call(vm, args)
51}
52
53const fn zst_ref_out_of_thin_air<T: 'static>(x: T) -> &'static T {
54 // if T is zero-sized, there's no issue forgetting it - even if it does have a Drop impl, it

Callers 2

into_funcMethod · 0.85
static_funcFunction · 0.85

Calls 1

callMethod · 0.45

Tested by

no test coverage detected