Re:Rusty.hpp: A Borrow Checker and Memory Ownership System f...
by umanwizard on Sunday May 05, 2024 @12:32PM
(#40266088)
You’re correct. Rust can’t statically prove which enum variant is inhabited. You do need a runtime switch, the difference is (at least in safe code) it statically forces you to indeed do that runtime switch.
[ Parent
| on HN ]
There are no comments on this comment yet.