pub fn result_to_code<T>(result: WuiResult<T>) -> i32
Convert a RuiResult to a C-compatible error code