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.