Function synthetic_instrument_is_valid_formula
Source #[unsafe(no_mangle)]
pub unsafe extern "C" fn synthetic_instrument_is_valid_formula(
formula_ptr: *const c_char,
components_ptr: *const c_char,
) -> u8
Expand description
Returns 1 if the formula is valid for the components, otherwise 0.
Null pointers and invalid components JSON return 0.
§Panics
Panics if:
- The formula string contains invalid UTF-8.
- A decoded component is not a valid instrument ID.
§Safety
Non-null pointers must reference valid C strings.