[−][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::PyRawObject; |
Structs
GILGuard | RAII type that represents the Global Interpreter Lock acquisition. |
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 |
Python | Marker type that indicates that the GIL is currently held. |
Traits
AsPyRef | Trait implements object reference extraction from python managed pointer. |
FromPy | Similar to std::convert::From, just that it requires a gil token. |
FromPyObject |
|
IntoPy | Similar to std::convert::Into, just that it requires a gil token. |
IntoPyPointer | This trait allows retrieving the underlying FFI pointer from Python objects. |
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. |
Attribute Macros
pyclass | |
pyfunction | |
pymethods | |
pymodule | Internally, this proc macro create a new c function called |
pyproto |