[−][src]Module pyo3::prelude
A collection of items you most likely want to have in scope when working with pyo3
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 crate::python::Python; |
pub use crate::PyRawObject; |
pub use pyo3cls::pyclass; |
pub use pyo3cls::pyfunction; |
pub use pyo3cls::pymethods; |
pub use pyo3cls::pyproto; |
pub use pyo3cls::pymodule3 as pymodule; |
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 |
PyErr | Represents a Python exception that was raised. |
PyModule | Represents a Python |
PyObject | A python object |
PyRef | A special reference of type |
PyRefMut | Mutable version of |
Traits
AsPyRef | Trait implements object reference extraction from python managed pointer. |
FromPyObject |
|
IntoPyObject | Conversion trait that allows various objects to be converted into |
ObjectProtocol | Python object model helper methods |
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 |
ToPyObject | Conversion trait that allows various objects to be converted into |
Type Definitions
PyResult | Represents the result of a Python call. |