Module function

Source

Structs§

ArgBytesLike
any bytes-like object. Like the y* format code for PyArg_Parse in CPython.
ArgCallable
ArgIndex
ArgIntoBool
A Python bool-like object.
ArgIntoComplex
A Python complex-like object.
ArgIntoFloat
A Python float-like object.
ArgIterable
An iterable Python object.
ArgMapping
ArgMemoryBuffer
A memory buffer, read-write access. Like the w* format code for PyArg_Parse in CPython.
ArgPrimitiveIndex
ArgSequence
FuncArgs
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.
HeapMethodDef
KwArgs
A map of keyword arguments to their values.
PosArgs
A list of positional argument values.
PyMethodDef
PyMethodFlags

Enums§

ArgAsciiBuffer
ArgByteOrder
ArgStrOrBytesLike
A text string or bytes-like object. Like the s* format code for PyArg_Parse in CPython.
ArgumentError
An error encountered while binding arguments to the parameters of a Python function call.
Either
FsPath
OptionalArg
An argument that may or may not be provided by the caller.
PyArithmeticValue
PySetterValue

Traits§

FromArgOptional
FromArgs
Implemented by any type that can be accepted as a parameter to a built-in function.
IntoFuncArgs
IntoPyNativeFn
Implemented by types that are or can generate built-in functions.
PyNativeFn
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

Type Aliases§

ArgSize
OptionalOption
PyComparisonValue
Morty Proxy This is a proxified and sanitized view of the page, visit original site.