Module rustpython_vm::function
source · Structs§
- any bytes-like object. Like the
y*
format code forPyArg_Parse
in CPython. - A Python bool-like object.
- A Python complex-like object.
- A Python float-like object.
- An iterable Python object.
- A memory buffer, read-write access. Like the
w*
format code forPyArg_Parse
in CPython. - The
FuncArgs
struct is one of the most used structs then creating a rust function that can be called from python. It holds both positional arguments, as well as keyword arguments passed to the function. - A map of keyword arguments to their values.
- A list of positional argument values.
Enums§
- A text string or bytes-like object. Like the
s*
format code forPyArg_Parse
in CPython. - An error encountered while binding arguments to the parameters of a Python function call.
- An argument that may or may not be provided by the caller.
Traits§
- Implemented by any type that can be accepted as a parameter to a built-in function.
- Implemented by types that are or can generate built-in functions.
Functions§
- Get the
STATIC_FUNC
of the passed function. The same requirements of zero-sizedness apply, see that documentation for details.
Type Aliases§
- A built-in Python function.