aboutsummaryrefslogtreecommitdiff
path: root/doc/args/select_arm.md
diff options
context:
space:
mode:
Diffstat (limited to 'doc/args/select_arm.md')
-rw-r--r--doc/args/select_arm.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/args/select_arm.md b/doc/args/select_arm.md
new file mode 100644
index 0000000..c371d22
--- /dev/null
+++ b/doc/args/select_arm.md
@@ -0,0 +1,7 @@
+A single arm inside the `select!` macro.
+
+| Variant | Example | Meaning |
+| ---------- | ----------------- | ----------------------------------------------------- |
+| `Explicit` | `"async" => expr` | Arm guarded by `feature = "async"` |
+| `Not` | `! => expr` | Arm guarded by `not(feature = <other_arm's_feature>)` |
+| `Implicit` | `expr` | Feature determined by `.await` detection |