3 ms·
In Rust and Swift they can have payloads and variants, which in Rust's case due to lack of ergonomics, there are plenty of macro crates to work around this.
by pjmlp 1y ago
In Rust and Swift they can have payloads and variants, which in Rust's case due to lack of ergonomics, there are plenty of macro crates to work around this.
- ameliaquining 1y agoYeah, to be clear, it's similar to an option type rather than a result type.