pyo3::impl_

Module extract_argument

Source

Structsยง

DictVarkeywords
Marker struct which indicates unknown keywords should be collected into a PyDict.
FunctionDescription
Function argument specification for a #[pyfunction] or #[pymethod].
KeywordOnlyParameterDescription
NoVarargs
Marker struct which indicates varargs are not allowed.
NoVarkeywords
Marker struct which indicates unknown keywords are not permitted.
TupleVarargs
Marker struct which indicates varargs should be collected into a PyTuple.

Traitsยง

FunctionArgumentHolder
Trait for types which can be a function argument holder - they should to be able to const-initialize to an empty value.
PyFunctionArgument
A trait which is used to help PyO3 macros extract function arguments.
VarargsHandler
A trait used to control whether to accept varargs in FunctionDescription::extract_argument_(method) functions.
VarkeywordsHandler
A trait used to control whether to accept varkeywords in FunctionDescription::extract_argument_(method) functions.

Functionsยง

argument_extraction_error ๐Ÿ‘ป
Adds the argument name to the error message of an error which occurred during argument extraction.
extract_argument ๐Ÿ‘ป
The standard implementation of how PyO3 extracts a #[pyfunction] or #[pymethod] function argument.
extract_argument_with_default ๐Ÿ‘ป
Alternative to extract_argument used when the argument has a default value provided by an annotation.
extract_optional_argument ๐Ÿ‘ป
Alternative to extract_argument used for Option<T> arguments. This is necessary because Option<&T> does not implement PyFunctionArgument for T: PyClass.
extract_pyclass_ref
extract_pyclass_ref_mut
from_py_with ๐Ÿ‘ป
Alternative to extract_argument used when the argument has a #[pyo3(from_py_with)] annotation.
from_py_with_with_default ๐Ÿ‘ป
Alternative to extract_argument used when the argument has a #[pyo3(from_py_with)] annotation and also a default value.
push_parameter_list ๐Ÿ”’
unwrap_required_argument ๐Ÿ‘ป โš 
Unwraps the Option<&PyAny> produced by the FunctionDescription extract_arguments_ methods. They check if required methods are all provided.

Type Aliasesยง

PyArg ๐Ÿ”’
Helper type used to keep implementation more concise.
โš ๏ธ Internal Docs โš ๏ธ Not Public API ๐Ÿ‘‰ Official Docs Here