Crate maybe_matches

Crate maybe_matches 

Source

Macrosยง

maybe_matches
A macro that takes an expression and matches it against a pattern, returning an Option. The macro returns Some of the value bound to the variable in the pattern if it matches it, None otherwise. Only patterns containing exactly one variable are supported.