Extra Credit

matches

A macro to evaluate, as a boolean, whether an expression matches a pattern.

$cargo add matches

Official docs outline

Extra Credit builds an outline of matches's docs the first time your work uses it. Until then, start at the official documentation.

All 4,945