Crate match_opt

Source

Macrosยง

match_opt
Returns Some(output) in case the given expression matches one of the given patterns of the form pattern => output, and None otherwise.