Skip to main content

position_side_from_cstr

Function position_side_from_cstr 

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

Returns an enum from a C string.

§Safety

Assumes ptr is a valid C string pointer.

§Panics

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