pub fn pyobject_to_instrument_any(
py: Python<'_>,
instrument: PyObject,
) -> PyResult<InstrumentAny>Expand description
Converts a Python object into an InstrumentAny enum.
§Errors
Returns a PyErr if extraction fails or the instrument type is unsupported.