Crate matches

Crate matches 

Source

Macrosยง

assert_matches
Assert that an expression matches a refutable pattern.
debug_assert_matches
Assert that an expression matches a refutable pattern using debug assertions.
matches
Check if an expression matches a refutable pattern.