pyo3::impl_::extract_argument

Trait VarkeywordsHandler

Source
pub trait VarkeywordsHandler<'py> {
    type Varkeywords: Default;

    // Required method
    fn handle_varkeyword(
        varkeywords: &mut Self::Varkeywords,
        name: Borrowed<'py, 'py, PyAny>,
        value: Borrowed<'py, 'py, PyAny>,
        function_description: &FunctionDescription,
    ) -> PyResult<()>;
}
Expand description

A trait used to control whether to accept varkeywords in FunctionDescription::extract_argument_(method) functions.

Required Associated Types§

Required Methods§

Source

fn handle_varkeyword( varkeywords: &mut Self::Varkeywords, name: Borrowed<'py, 'py, PyAny>, value: Borrowed<'py, 'py, PyAny>, function_description: &FunctionDescription, ) -> PyResult<()>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

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