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;
Modulesยง
- lazy_type_object ๐
Macrosยง
- Macro which expands to three items
- Macro which expands to three items
- slot_fragment_trait ๐
Structsยง
- Actual dict field, which holds the pointer to
__dict__
. - Zero-sized dummy field.
- 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__
. - SendablePyClass ๐ปDefault thread checker for
#[pyclass]
. - ThreadCheckerImpl ๐ปThread checker for
#[pyclass(unsendable)]
types. Panics when the value is accessed by another thread.
Traitsยง
- 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. - PyClassThreadChecker ๐ป
- Represents the
__weakref__
field for#[pyclass]
. - Implements a freelist.
- PyMethodsNon-
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.
- Implementation of tp_free for
freelist
classes. - get_sequence_item_from_mapping ๐ โ
- 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.