pub fn new<'a>(
        fun: ffi::PyCFunction,
        name: &'static str,
        doc: &'static str,
        py_or_module: PyFunctionArguments<'a>,
    ) -> PyResult<&'a Self> {
        Self::internal_new(
            PyMethodDef::noargs(name, methods::PyCFunction(fun), doc),
            py_or_module,
        )
    }
/// Create a new built-in function without keywords.
Create a new built-in function without keywords.
Create a new built - in function without keywords .
pub fn new<'a>(
        fun: ffi::PyCFunction,
        name: &'static str,
        doc: &'static str,
        py_or_module: PyFunctionArguments<'a>,
    ) -> PyResult<&'a Self> {
        Self::internal_new(
            PyMethodDef::noargs(name, methods::PyCFunction(fun), doc),
            py_or_module,
        )
    }
pub fn new < ' a > ( fun : ffi :: PyCFunction , name : & ' static str , doc : & ' static str , py_or_module : PyFunctionArguments < ' a > , ) -> PyResult < & ' a Self > { Self :: internal_new ( PyMethodDef :: noargs ( name , methods :: PyCFunction ( fun ) , doc ) , py_or_module , ) }
Create a new built-in function without keywords.
Create a new built - in function without keywords .
fun
ffi::PyCFunction
name
&'static str
doc
&'static str
py_or_module
PyFunctionArguments<'a>
fun
ffi::PyCFunction
name
&'static str
doc
&'static str
py_or_module
PyFunctionArguments<'a>