component_trigger_from_cstr

Function component_trigger_from_cstr 

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

Returns an enum from a Python string.

§Safety

Assumes ptr is a valid C string pointer.

§Panics

Panics if the input C string does not match a valid enum variant.