#[unsafe(no_mangle)]pub unsafe extern "C" fn trait_call(
json_ptr: *const u8,
json_len: usize,
out_len: *mut usize,
) -> *mut u8Expand description
C ABI entry point: receives JSON args, calls trait function, returns JSON result.
ยงSafety
json_ptrmust point tojson_lenvalid bytes of JSONout_lenmust be a valid pointer to write the result length- Caller must free the returned buffer via
trait_free