Module pyo3::types

source ·
Expand description

Various types defined by the Python interpreter such as int, str and tuple.

Modules

  • Iteration over Python collections.

Structs

  • Represents any Python object.
  • Represents a Python bool.
  • Represents a Python bytearray.
  • Represents a Python bytes object.
  • Represents a builtin Python function object.
  • Represents a Python Capsule as described in Capsules:
  • PyCodeNon-Py_LIMITED_API
    Represents a Python code object.
  • Represents a Python complex object.
  • PyDateNon-Py_LIMITED_API
    Bindings around datetime.date
  • PyDateTimeNon-Py_LIMITED_API
    Bindings for datetime.datetime
  • PyDeltaNon-Py_LIMITED_API
    Bindings for datetime.timedelta
  • Represents a Python dict.
  • PyDictItemsNon-PyPy
    Represents a Python dict_items.
  • PyDictKeysNon-PyPy
    Represents a Python dict_keys.
  • PyDictValuesNon-PyPy
    Represents a Python dict_values.
  • Represents a Python float object.
  • PyFrameNon-Py_LIMITED_API and non-PyPy
    Represents a Python frame.
  • Represents a Python frozenset
  • PyFunctionNon-Py_LIMITED_API and non-PyPy and not (PyPy and non-Py_3_8)
    Represents a Python function object.
  • Represents a Python int object.
  • A Python iterator object.
  • Represents a Python list.
  • Represents a Python int object.
  • Represents a reference to a Python object supporting the mapping protocol.
  • Represents a Python module object.
  • Represents a reference to a Python object supporting the sequence protocol.
  • Represents a Python set
  • Represents a Python slice.
  • Return value from PySlice::indices.
  • Represents a Python string (a Unicode string object).
  • PySuperNon-PyPy
    Represents a Python super object.
  • PyTimeNon-Py_LIMITED_API
    Bindings for datetime.time
  • Represents a Python traceback.
  • Represents a Python tuple object.
  • Represents a reference to a Python type object.
  • PyTzInfoNon-Py_LIMITED_API
    Bindings for datetime.tzinfo.
  • Represents a Python string (a Unicode string object).

Enums

  • PyStringDataNon-Py_LIMITED_API
    Represents raw data backing a Python str.

Traits

  • Conversion trait that allows a sequence of tuples to be converted into PyDict Primary use case for this trait is call and call_method methods as keywords argument.
  • PyDateAccessNon-Py_LIMITED_API
    Trait for accessing the date components of a struct containing a date.
  • PyDeltaAccessNon-Py_LIMITED_API
    Trait for accessing the components of a struct containing a timedelta.
  • PyTimeAccessNon-Py_LIMITED_API
    Trait for accessing the time components of a struct containing a time.
  • PyTzInfoAccessNon-Py_LIMITED_API
    Trait for accessing the components of a struct containing a tzinfo.

Functions

  • timezone_utcNon-Py_LIMITED_API
    Equivalent to datetime.timezone.utc