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

Function static_raw_func

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

Source from the content-addressed store, hash-verified

78
79#[inline(always)]
80pub const fn static_raw_func<F: PyNativeFn>(f: F) -> &'static dyn PyNativeFn {
81 zst_ref_out_of_thin_air(f)
82}
83
84// TODO: once higher-rank trait bounds are stabilized, remove the `Kind` type
85// parameter and impl for F where F: for<T, R, VM> PyNativeFnInternal<T, R, VM>

Callers 1

new_raw_constMethod · 0.85

Calls 1

zst_ref_out_of_thin_airFunction · 0.85

Tested by

no test coverage detected