<p dir="auto">Rust does not interoperate with C unions right now. Doing so typically requires a lot of unsafe casting. Consensus seems to be that we need a macro-based solution.</p>
<p dir="auto">How would one call C functions involving union with Rust FFI?</p>
<p dir="auto">SpiderMonkey's jsval is one example.</p>