Module pyo3::impl_::extract_argument
source ยท Structsยง
- Marker struct which indicates unknown keywords should be collected into a
PyDict
. - Function argument specification for a
#[pyfunction]
or#[pymethod]
. - Marker struct which indicates varargs are not allowed.
- Marker struct which indicates unknown keywords are not permitted.
- Marker struct which indicates varargs should be collected into a
PyTuple
.
Traitsยง
- Trait for types which can be a function argument holder - they should to be able to const-initialize to an empty value.
- A trait which is used to help PyO3 macros extract function arguments.
- A trait used to control whether to accept varargs in FunctionDescription::extract_argument_(method) functions.
- A trait used to control whether to accept varkeywords in FunctionDescription::extract_argument_(method) functions.
Functionsยง
- 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. - Alternative to
extract_argument
used when the argument has a default value provided by an annotation. - Alternative to
extract_argument
used forOption<T>
arguments. This is necessary because Option<&T> does not implementPyFunctionArgument
forT: PyClass
. - from_py_with ๐ปAlternative to
extract_argument
used when the argument has a#[pyo3(from_py_with)]
annotation. - 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.