Module prelude
Available on crate features
dep_pyo3
and std
only.Expand description
PyO3’s prelude.
The purpose of this module is to alleviate imports of many commonly used items of the PyO3 crate by adding a glob import to the top of pyo3 heavy modules:
use pyo3::prelude::*;
Structs§
- A borrowed equivalent to
Bound
. - A GIL-attached equivalent to
Py<T>
. - A GIL-independent reference to an object allocated on the Python heap.
- Represents any Python object.
- Initializer for our
#[pyclass]
system. - Represents a Python exception.
- Represents a Python
module
object. - A wrapper type for an immutably borrowed value from a [
Bound<'py, T>
]. - A wrapper type for a mutably borrowed value from a [
Bound<'py, T>
]. - A marker token that represents holding the GIL.
Traits§
- Extract a type from a Python object.
- IntoPy
Deprecated Defines a conversion from a Rust type to a Python object. - Defines a conversion from a Rust type to a Python object, which may fail.
- This trait represents the Python APIs which are usable on all Python objects.
- Implementation of functionality for
PyBool
. - Implementation of functionality for
PyByteArray
. - Implementation of functionality for
PyBytes
. - Implementation of functionality for
PyCapsule
. - Implementation of functionality for
PyComplex
. - Implementation of functionality for
PyDict
. - Implementation of functionality for
PyFloat
. - Implementation of functionality for
PyFrozenSet
. - Implementation of functionality for
PyList
. - Implementation of functionality for
PyMapping
. - Implementation of functionality for
PyMappingProxy
. - Implementation of functionality for
PyModule
. - Implementation of functionality for
PySequence
. - Implementation of functionality for
PySet
. - Implementation of functionality for
PySlice
. - Implementation of functionality for
PyString
. - Implementation of functionality for
PyTraceback
. - Implementation of functionality for
PyTuple
. - Implementation of functionality for
PyType
. - Implementation of functionality for
PyWeakref
. - ToPy
Object Deprecated Conversion trait that allows various objects to be converted intoPyObject
.
Type Aliases§
- A commonly-used alias for
Py<PyAny>
. - Represents the result of a Python call.