pub fn add_operators(
class: &'static Py<PyType>,
ctx: &Context,
attr_docs: &[(&str, u32, u32)],
)Expand description
Add slot wrapper descriptors to a type’s dict
Iterates SLOT_DEFS and creates a PyWrapper for each slot that:
- Has a function set in the type’s slots
- Doesn’t already have an attribute in the type’s dict