Re-exportsΒ§
use pyo3_ffi::Py_TPFLAGS_HEAPTYPE;πuse crate::exceptions::PyStopAsyncIteration;πuse crate::impl_::callback::IntoPyCallbackOutput;πuse crate::impl_::introspection::PyReturnType;πexperimental-inspectuse crate::impl_::panic::PanicTrap;πuse crate::impl_::pyclass::PyClassDict as _;πuse crate::inspect::PyStaticExpr;πexperimental-inspectuse crate::instance::PyBorrowedUnbound;πuse crate::internal::get_slot::TP_BASE;πuse crate::internal::get_slot::TP_CLEAR;πuse crate::internal::get_slot::TP_TRAVERSE;πuse crate::internal::get_slot::get_slot;πuse crate::internal::pyclass_init::PyClassInit;πuse crate::internal::state::ForbidAttaching;πuse crate::pycell::impl_::PyClassObjectLayout;πuse crate::pyclass::gc::PyClassTraverseGuard;πuse crate::pyclass::gc::PyTraverseError;πuse crate::pyclass::gc::PyVisit;πuse crate::pyclass::gc::make_traverse_result;πuse crate::types::PyType;πuse crate::Borrowed;πuse crate::Bound;πuse crate::Py;πuse crate::PyAny;πuse crate::PyClass;πuse crate::PyErr;πuse crate::PyResult;πuse crate::Python;πuse crate::ffi;πuse core::ffi::CStr;πuse core::ffi::c_int;πuse core::ffi::c_void;πuse core::fmt;πuse core::ptr::NonNull;πuse core::ptr::null_mut;πuse super::pyclass::PyClassImpl;πuse super::trampoline;πpub use crate::maybe_define_fastcall_function_with_keywords;pub use crate::maybe_extract_arguments_fastcall;pub use crate::internal::pyclass_init::tp_new_resolver;
MacrosΒ§
- iter_
next_ πoutput
StructsΒ§
EnumsΒ§
- PyMethod
DefType PyMethodDefTyperepresents different types of Python callable objects. It is used by the#[pymethods]attribute.- PyMethod
Type
TraitsΒ§
- Async
Iter Next Convert Fallback - Async
Iter Next Type Fallback experimental-inspect - Iter
Next Convert Fallback - Iter
Next Type Fallback experimental-inspect
FunctionsΒ§
- _call_
clear β - Calls an implementation of clear for tp_clear
- call_
super_ π βclear - Call super-type traverse method, if necessary.
- call_
super_ π βtraverse - Call super-type traverse method, if necessary.
- clear_
eq π - synthesized_
clear β tp_clearfor a#[pyclass]which defines no__clear__of its own: calls the base type and clears the instance__dict__(if it is a#[pyclass(dict)]).- tp_
new_ βimpl - SAFETY
- tp_
traverse π» β - Calls an implementation of traverse for tp_traverse
- traverse_
eq π - traverse_
impl π β - Visits the base type, the instance
__dict__and the pyclassβs own data, stopping as soon as one of them returns non-zero.
Type AliasesΒ§
- Deleter π
- Getter π
- Class getter / setters
- PyClass
Attribute Factory - Setter π