(search_function: PyObjectRef, vm: &VirtualMachine)
| 19 | |
| 20 | #[pyfunction] |
| 21 | fn register(search_function: PyObjectRef, vm: &VirtualMachine) -> PyResult<()> { |
| 22 | vm.state.codec_registry.register(search_function, vm) |
| 23 | } |
| 24 | |
| 25 | #[pyfunction] |
| 26 | fn unregister(search_function: PyObjectRef, vm: &VirtualMachine) -> PyResult<()> { |