pub const fn static_func<Kind, F: IntoPyNativeFn<Kind>>(
    f: F
) -> &'static PyNativeFn
Expand description

Get the STATIC_FUNC of the passed function. The same requirements of zero-sizedness apply, see that documentation for details.