Skip to main content

add_operators

Function add_operators 

Source
pub fn add_operators(class: &'static Py<PyType>, ctx: &Context)
Expand description

Add slot wrapper descriptors to a type’s dict

Iterates SLOT_DEFS and creates a PyWrapper for each slot that:

  1. Has a function set in the type’s slots
  2. Doesn’t already have an attribute in the type’s dict