by dc01 · 4y ago · 0 comments
In Rust you would use an Enum (a discriminated Union) for this not an Union and you wouldn't need unsafe.