nautilus_model::ffi::enums

Function liquidity_side_from_cstr

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

Returns an enum from a Python string.

ยงSafety

  • Assumes ptr is a valid C string pointer.