Skip to main content

pyobject_to_simulation_module_handle

Function pyobject_to_simulation_module_handle 

Source
pub fn pyobject_to_simulation_module_handle(
    py: Python<'_>,
    obj: &Bound<'_, PyAny>,
) -> PyResult<SimulationModuleHandle>
Expand description

Extracts a Python object into a runtime simulation module handle.

Built-ins resolve first, followed by linked native extractors, then Python subclasses.

ยงErrors

Returns an error if the object cannot be resolved or its native extractor fails.