#[unsafe(no_mangle)]pub extern "C" fn expr_unify_expression(
handle: *mut Expr,
) -> *mut c_char
Expand description
Attempts to unify the units within an expression.
Returns a JSON string representing a FfiResult
which contains either the
new Expr
object in the ok
field or an error message in the err
field.
The caller can then use expr_from_json
to get a handle to the new expression.
The caller is responsible for freeing the returned string using free_string
.