summaryrefslogtreecommitdiffstats
path: root/third_party/rust/matches/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/rust/matches/README.md')
-rw-r--r--third_party/rust/matches/README.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/third_party/rust/matches/README.md b/third_party/rust/matches/README.md
new file mode 100644
index 0000000000..543ba1b091
--- /dev/null
+++ b/third_party/rust/matches/README.md
@@ -0,0 +1,7 @@
+A macro to evaluate, as a boolean, whether an expression matches a pattern.
+
+For users who build using only Rust 1.42 and newer, consider using [`std::matches`], which
+is included in the [standard library prelude] and thus is automatically in scope.
+
+[`std::matches`]: core::matches
+[standard library prelude]: https://doc.rust-lang.org/stable/reference/names/preludes.html