Re-exportsยง
pub use lazy_type_object::LazyTypeObject;
pub use generate_pyclass_getattro_slot;
pub use generate_pyclass_setattr_slot;
pub use generate_pyclass_setdescr_slot;
pub use generate_pyclass_setitem_slot;
pub use generate_pyclass_add_slot;
pub use generate_pyclass_sub_slot;
pub use generate_pyclass_mul_slot;
pub use generate_pyclass_mod_slot;
pub use generate_pyclass_divmod_slot;
pub use generate_pyclass_lshift_slot;
pub use generate_pyclass_rshift_slot;
pub use generate_pyclass_and_slot;
pub use generate_pyclass_or_slot;
pub use generate_pyclass_xor_slot;
pub use generate_pyclass_matmul_slot;
pub use generate_pyclass_truediv_slot;
pub use generate_pyclass_floordiv_slot;
pub use generate_pyclass_pow_slot;
pub use generate_pyclass_richcompare_slot;
pub use assertions::*;
pub use probes::*;
Modulesยง
- assertions ๐
- lazy_
type_ ๐object - probes ๐
Macrosยง
- Macro which expands to three items
- Macro which expands to three items
- Calculates the offset of the specified field from the start of the named struct.
- slot_
fragment_ ๐trait
Structsยง
- Actual dict field, which holds the pointer to
__dict__
. - Zero-sized dummy field.
- Type which uses specialization on impl blocks to determine how to read a field from a Rust pyclass as part of a
#[pyo3(get)]
annotation. - This type is used as a โdummyโ type on which dtolnay specializations are applied to apply implementations from
#[pymethods]
- Iterator used to process all class items during type instantiation.
- Actual weakref field, which holds the pointer to
__weakref__
. - Sendable
PyClass ๐ปDefault thread checker for#[pyclass]
. - Thread
Checker ๐ปImpl Thread checker for#[pyclass(unsendable)]
types. Panics when the value is accessed by another thread.
Enumsยง
Traitsยง
- Helper trait to locate field within a
#[pyclass]
for a#[pyo3(get)]
. - Trait denoting that this class is suitable to be used as a base type for PyClass.
- Represents the
__dict__
field for#[pyclass]
. - Implements the underlying functionality of
#[pyclass]
, assembled by various proc macros. - PyClass
Thread ๐ปChecker - Represents the
__weakref__
field for#[pyclass]
. - Implements a freelist.
- PyMethods
Non- multiple-pymethods
Functionsยง
- Implementation of tp_alloc for
freelist
classes. - Runtime helper to build a class docstring from the
doc
andtext_signature
. - Gets the offset of the dictionary from the start of the object in bytes.
- ensure_
no_ ๐ โmutable_ alias ensuresobj
is not mutably aliased - field_
from_ ๐object calculates the field pointer from an PyObject pointer - Implementation of tp_free for
freelist
classes. - get_
sequence_ ๐ โitem_ from_ mapping - pyo3_
get_ ๐value - tp_
dealloc ๐ โImplementation of tp_dealloc for pyclasses without gc - tp_
dealloc_ ๐ โwith_ gc Implementation of tp_dealloc for pyclasses with gc - Gets the offset of the weakref list from the start of the object in bytes.