Crate matches2

Source

Macrosยง

  • Assert that an expression matches a refutable pattern.
  • Assert that an expression matches a refutable pattern using debug assertions.
  • Check if an expression matches a refutable pattern.
  • Returns Option::Some if the pattern matches with the given value, or Option::None otherwise
  • A general version of Option::unwrap for all enum variants.