pyo3_macros_backend::pymethod

Function impl_py_method_def

Source
pub fn impl_py_method_def(
    cls: &Type,
    spec: &FnSpec<'_>,
    doc: &PythonDoc,
    flags: Option<TokenStream>,
    ctx: &Ctx,
) -> Result<MethodAndMethodDef>
Expand description

Also used by pyfunction.

⚠️ Internal Docs ⚠️ Not Public API 👉 Official Docs Here