Structs§
- ArgBytes
Like - any bytes-like object. Like the
y*
format code forPyArg_Parse
in CPython. - ArgCallable
- ArgIndex
- ArgInto
Bool - A Python bool-like object.
- ArgInto
Complex - A Python complex-like object.
- ArgInto
Float - A Python float-like object.
- ArgIterable
- An iterable Python object.
- ArgMapping
- ArgMemory
Buffer - A memory buffer, read-write access. Like the
w*
format code forPyArg_Parse
in CPython. - ArgPrimitive
Index - ArgSequence
- Func
Args - 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. - Heap
Method Def - KwArgs
- A map of keyword arguments to their values.
- PosArgs
- A list of positional argument values.
- PyMethod
Def - PyMethod
Flags
Enums§
- ArgAscii
Buffer - ArgByte
Order - ArgStr
OrBytes Like - A text string or bytes-like object. Like the
s*
format code forPyArg_Parse
in CPython. - Argument
Error - An error encountered while binding arguments to the parameters of a Python function call.
- Either
- FsPath
- Optional
Arg - An argument that may or may not be provided by the caller.
- PyArithmetic
Value - PySetter
Value
Traits§
- From
ArgOptional - From
Args - Implemented by any type that can be accepted as a parameter to a built-in function.
- Into
Func Args - Into
PyNative Fn - Implemented by types that are or can generate built-in functions.
- PyNative
Fn - A built-in Python function.
Functions§
- static_
func - Get the
STATIC_FUNC
of the passed function. The same requirements of zero-sizedness apply, see that documentation for details. - static_
raw_ func