On Wednesday, 24 February 2016 at 14:50:37 UTC, Andrei Alexandrescu wrote:
Probably we can do the same in a library: never allow the value out of an Option, but provide a visitor with two aliases (ham/spam).

Rust provides value accessor for Option: https://doc.rust-lang.org/stable/std/option/enum.Option.html#method.unwrap

Reply via email to