Module pyo3::prelude
[−]
[src]
The PyO3
Prelude
The purpose of this module is to alleviate imports of many common pyo3 traits by adding a glob import to the top of pyo3 heavy modules:
use pyo3::prelude::*;
Re-exports
pub use super::py; |
pub use class::*; |
pub use typeob::PyRawObject; |
Modules
exc |
This module contains the standard python exception types. |
Structs
GILGuard |
RAII type that represents the Global Interpreter Lock acquisition. |
NoArgs |
An empty struct that represents the empty argument list.
Corresponds to the empty tuple |
Py |
Safe wrapper around unsafe |
PyBool |
Represents a Python |
PyByteArray |
Represents a Python |
PyBytes |
Represents a Python |
PyDict |
Represents a Python |
PyDowncastError |
Marker type that indicates an error while downcasting |
PyErr |
Represents a Python exception that was raised. |
PyFloat |
Represents a Python |
PyFrozenSet |
Represents a Python |
PyInt |
Represents a Python |
PyIterator |
A python iterator object. |
PyList |
Represents a Python |
PyLong |
Represents a Python |
PyModule |
Represents a Python |
PyObject |
Safe wrapper around unsafe |
PyObjectRef |
Represents general python instance. |
PySequence |
Represents a reference to a python object supporting the sequence protocol. |
PySet |
Represents a Python |
PySlice |
Represents a Python |
PySliceIndices |
Represents a Python |
PyString |
Represents a Python |
PyToken | |
PyTuple |
Represents a Python |
PyType |
Represents a reference to a Python |
Python |
Marker type that indicates that the GIL is currently held. |
Enums
PyErrValue |
Represents a |
PyStringData |
Enum of possible Python string representations. |
Traits
AsPyRef |
Trait implements objet reference extraction from python managed pointer. |
FromPyObject |
|
IntoPyObject |
Conversion trait that allows various objects to be converted into |
IntoPyPointer |
This trait allows retrieving the underlying FFI pointer from Python objects. |
IntoPyTuple |
Conversion trait that allows various objects to be converted into |
ObjectProtocol |
Python object model helper methods |
PyErrArguments |
Helper conversion trait that allows to use custom arguments for exception constructor. |
PyObjectWithToken |
Any instance that is managed Python can have access to |
PyTryFrom |
Trait implemented by Python object types that allow a checked downcast.
This trait is similar to |
PyTryInto |
Trait implemented by Python object types that allow a checked downcast.
This trait is similar to |
ToBorrowedObject | |
ToPyObject |
Conversion trait that allows various objects to be converted into |
ToPyPointer |
This trait allows retrieving the underlying FFI pointer from Python objects. |
Type Definitions
PyResult |
Represents the result of a Python call. |