#[no_mangle] pub unsafe extern "C" fn component_state_from_cstr( ptr: *const c_char, ) -> ComponentState
Returns an enum from a Python string.
Assumes ptr is a valid C string pointer.
ptr
Panics if the input C string does not match a valid enum variant.