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
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