Function instrument_class_from_cstr

Source
#[no_mangle]
pub unsafe extern "C" fn instrument_class_from_cstr(
    ptr: *const c_char,
) -> InstrumentClass
Expand description

Returns an enum from a Python string.

§Safety

Assumes ptr is a valid C string pointer.

§Panics

Panics if the C string does not correspond to a valid InstrumentClass variant.