Movatterモバイル変換


[0]ホーム

URL:


[][src]Modulerustpython_vm::function

Structs

Args

A list of positional argument values.

KwArgs

A map of keyword arguments to their values.

OwnedParam
PyFuncArgs

ThePyFuncArgs struct is one of the most used structs then creatinga rust function that can be called from python. It holds both positionalarguments, as well as keyword arguments passed to the function.

RefParam

Enums

ArgumentError

An error encountered while binding arguments to the parameters of a Pythonfunction call.

OptionalArg

An argument that may or may not be provided by the caller.

Traits

FromArgs

Implemented by any type that can be accepted as a parameter to a built-infunction.

IntoPyNativeFunc

Implemented by types that are or can generate built-in functions.

Functions

single_or_tuple_any

Tests that the predicate is True on a single value, or if the value is a tuple a tuple, thentest that any of the values contained within the tuples satisfies the predicate. Type parameterT specifies the type that is expected, if the input value is not of that type or a tuple ofvalues of that type, then a TypeError is raised.

Type Definitions

OptionalOption
PyNativeFunc

A built-in Python function.


[8]ページ先頭

©2009-2025 Movatter.jp