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