Expand description
Registries which resolve Python objects into owned Rust factories.
A Python caller cannot hand ownership of a #[pyclass] instance to Rust, so subsystems which
let Python install a backing accept a factory object instead. Each subsystem keeps a
FactoryRegistry of extractors keyed by Python class name, then resolves an owned
Box<dyn Factory> from an arbitrary Python object at configuration time.
Structs§
- Factory
Registry - Registry of Python factory extractors keyed by Python class name.
Type Aliases§
- Factory
Extractor - Function type for extracting a Python object into a boxed factory.