summaryrefslogtreecommitdiff
path: root/.emacs.d/snippets/rust-mode/afnw
diff options
context:
space:
mode:
Diffstat (limited to '.emacs.d/snippets/rust-mode/afnw')
-rw-r--r--.emacs.d/snippets/rust-mode/afnw7
1 files changed, 7 insertions, 0 deletions
diff --git a/.emacs.d/snippets/rust-mode/afnw b/.emacs.d/snippets/rust-mode/afnw
new file mode 100644
index 0000000..3c358f8
--- /dev/null
+++ b/.emacs.d/snippets/rust-mode/afnw
@@ -0,0 +1,7 @@
1# -*- mode: snippet -*-
2# name: async fn name<T>(x: T) where T: Clone { ... }
3# key: afnw
4# --
5async fn ${1:name}<${2:T}>(${3:x: T}) where ${4:T: Clone} {
6 $0
7} \ No newline at end of file