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ยง
- Convert
Field - PyClass
Dict Slot - Actual dict field, which holds the pointer to
__dict__
. - PyClass
Dummy Slot - Zero-sized dummy field.
- PyClass
Getter 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. - PyClass
Impl Collector - This type is used as a โdummyโ type on which dtolnay specializations are
applied to apply implementations from
#[pymethods]
- PyClass
Items - PyClass
Items Iter - Iterator used to process all class items during type instantiation.
- PyClass
Weak RefSlot - 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ยง
- Offset
Calculator - Helper trait to locate field within a
#[pyclass]
for a#[pyo3(get)]
. - PyClass
Base Type - Trait denoting that this class is suitable to be used as a base type for PyClass.
- PyClass
Dict - Represents the
__dict__
field for#[pyclass]
. - PyClass
Impl - Implements the underlying functionality of
#[pyclass]
, assembled by various proc macros. - PyClass
NewText Signature - PyClass
Thread ๐ปChecker - PyClass
Weak Ref - Represents the
__weakref__
field for#[pyclass]
. - PyClass
With 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 - PyMethods
Non- multiple-pymethods
- PyO3
GetField
Functionsยง
- alloc_
with_ โfreelist - Implementation of tp_alloc for
freelist
classes. - assign_
sequence_ ๐ โitem_ from_ mapping - build_
pyclass_ doc - Runtime helper to build a class docstring from the
doc
andtext_signature
. - class_
offset - dict_
offset - Gets the offset of the dictionary from the start of the object in bytes.
- ensure_
no_ ๐ โmutable_ alias - ensures
obj
is not mutably aliased - field_
from_ ๐object - calculates the field pointer from an PyObject pointer
- free_
with_ โfreelist - Implementation of tp_free for
freelist
classes. - get_
sequence_ ๐ โitem_ from_ mapping - pyo3_
get_ ๐value - pyo3_
get_ ๐value_ into_ pyobject - pyo3_
get_ ๐value_ into_ pyobject_ ref - pyo3_
get_ ๐value_ topyobject - 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.