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 ๐
- sealed ๐
Macrosยง
- define_pyclass_ ๐binary_ operator_ slot 
- Macro which expands to three items
- define_pyclass_ ๐setattr_ slot 
- Macro which expands to three items
- offset_of 
- Calculates the offset of the specified field from the start of the named struct.
- slot_fragment_ ๐trait 
Structsยง
- ConvertField 
- PyClassDict Slot 
- Actual dict field, which holds the pointer to __dict__.
- PyClassDummy Slot 
- Zero-sized dummy field.
- PyClassGetter Generator 
- 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.
- PyClassImpl Collector 
- This type is used as a โdummyโ type on which dtolnay specializations are
applied to apply implementations from #[pymethods]
- PyClassItems 
- PyClassItems Iter 
- Iterator used to process all class items during type instantiation.
- PyClassWeak RefSlot 
- Actual weakref field, which holds the pointer to __weakref__.
- SendablePyClass ๐ป
- Default thread checker for #[pyclass].
- ThreadChecker ๐ปImpl 
- Thread checker for #[pyclass(unsendable)]types. Panics when the value is accessed by another thread.
Enumsยง
Traitsยง
- OffsetCalculator 
- Helper trait to locate field within a #[pyclass]for a#[pyo3(get)].
- PyClassBase Type 
- Trait denoting that this class is suitable to be used as a base type for PyClass.
- PyClassDict 
- Represents the __dict__field for#[pyclass].
- PyClassImpl 
- Implements the underlying functionality of #[pyclass], assembled by various proc macros.
- PyClassNewText Signature 
- PyClassThread ๐ปChecker 
- PyClassWeak Ref 
- Represents the __weakref__field for#[pyclass].
- PyClassWith Free List 
- Implements a freelist.
- PyClass__add__ Slot Fragment 
- PyClass__and__ Slot Fragment 
- PyClass__delattr__ Slot Fragment 
- PyClass__delete__ Slot Fragment 
- PyClass__delitem__ Slot Fragment 
- PyClass__divmod__ Slot Fragment 
- PyClass__eq__ Slot Fragment 
- PyClass__floordiv__ Slot Fragment 
- PyClass__ge__ Slot Fragment 
- PyClass__getattr__ Slot Fragment 
- PyClass__getattribute__ Slot Fragment 
- PyClass__gt__ Slot Fragment 
- PyClass__le__ Slot Fragment 
- PyClass__lshift__ Slot Fragment 
- PyClass__lt__ Slot Fragment 
- PyClass__matmul__ Slot Fragment 
- PyClass__mod__ Slot Fragment 
- PyClass__mul__ Slot Fragment 
- PyClass__ne__ Slot Fragment 
- PyClass__or__ Slot Fragment 
- PyClass__pow__ Slot Fragment 
- PyClass__radd__ Slot Fragment 
- PyClass__rand__ Slot Fragment 
- PyClass__rdivmod__ Slot Fragment 
- PyClass__rfloordiv__ Slot Fragment 
- PyClass__rlshift__ Slot Fragment 
- PyClass__rmatmul__ Slot Fragment 
- PyClass__rmod__ Slot Fragment 
- PyClass__rmul__ Slot Fragment 
- PyClass__ror__ Slot Fragment 
- PyClass__rpow__ Slot Fragment 
- PyClass__rrshift__ Slot Fragment 
- PyClass__rshift__ Slot Fragment 
- PyClass__rsub__ Slot Fragment 
- PyClass__rtruediv__ Slot Fragment 
- PyClass__rxor__ Slot Fragment 
- PyClass__set__ Slot Fragment 
- PyClass__setattr__ Slot Fragment 
- PyClass__setitem__ Slot Fragment 
- PyClass__sub__ Slot Fragment 
- PyClass__truediv__ Slot Fragment 
- PyClass__xor__ Slot Fragment 
- PyMethodsNon- multiple-pymethods
- PyO3GetField 
Functionsยง
- alloc_with_ โfreelist 
- Implementation of tp_alloc for freelistclasses.
- assign_sequence_ ๐ โitem_ from_ mapping 
- build_pyclass_ doc 
- Runtime helper to build a class docstring from the docandtext_signature.
- class_offset 
- dict_offset 
- Gets the offset of the dictionary from the start of the object in bytes.
- ensure_no_ ๐ โmutable_ alias 
- ensures objis not mutably aliased
- field_from_ ๐object 
- calculates the field pointer from an PyObject pointer
- free_with_ โfreelist 
- Implementation of tp_free for freelistclasses.
- get_sequence_ ๐ โitem_ from_ mapping 
- pyo3_get_ ๐value_ into_ pyobject 
- pyo3_get_ ๐value_ into_ pyobject_ ref 
- tp_dealloc ๐ โ
- Implementation of tp_dealloc for pyclasses without gc
- tp_dealloc_ ๐ โwith_ gc 
- Implementation of tp_dealloc for pyclasses with gc
- weaklist_offset 
- Gets the offset of the weakref list from the start of the object in bytes.