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.
- option_
match - Returns
Option::Some
if the pattern matches with the given value, orOption::None
otherwise - unwrap_
match - A general version of
Option::unwrap
for all enum variants.