emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/yasnippet-snippets ab935d7c7b 12/13: Add async versions of


From: ELPA Syncer
Subject: [nongnu] elpa/yasnippet-snippets ab935d7c7b 12/13: Add async versions of function snippets for rust (#480)
Date: Fri, 5 Jan 2024 07:00:47 -0500 (EST)

branch: elpa/yasnippet-snippets
commit ab935d7c7b26a89048e64bda6dd9ed0efe453eb6
Author: Samuel Kyletoft <45131343+SKyletoft@users.noreply.github.com>
Commit: GitHub <noreply@github.com>

    Add async versions of function snippets for rust (#480)
---
 snippets/rust-mode/afn   | 7 +++++++
 snippets/rust-mode/afnr  | 7 +++++++
 snippets/rust-mode/afns  | 7 +++++++
 snippets/rust-mode/afnw  | 7 +++++++
 snippets/rust-mode/pafn  | 7 +++++++
 snippets/rust-mode/pafnr | 7 +++++++
 snippets/rust-mode/pafns | 7 +++++++
 snippets/rust-mode/pafnw | 7 +++++++
 8 files changed, 56 insertions(+)

diff --git a/snippets/rust-mode/afn b/snippets/rust-mode/afn
new file mode 100644
index 0000000000..9ed1d9c76e
--- /dev/null
+++ b/snippets/rust-mode/afn
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: async fn name() { ... }
+# key: afn
+# --
+async fn ${1:name}($2) {
+    $0
+}
\ No newline at end of file
diff --git a/snippets/rust-mode/afnr b/snippets/rust-mode/afnr
new file mode 100644
index 0000000000..71cbbbd49b
--- /dev/null
+++ b/snippets/rust-mode/afnr
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: async fn name() -> Type { ... }
+# key: afnr
+# --
+async fn ${1:name}($2) -> ${3:Type} {
+    $0
+}
\ No newline at end of file
diff --git a/snippets/rust-mode/afns b/snippets/rust-mode/afns
new file mode 100644
index 0000000000..c88e672284
--- /dev/null
+++ b/snippets/rust-mode/afns
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: async fn name(&self) -> Type  { ... }
+# key: afns
+# --
+async fn ${1:name}(${2:&self}) -> ${3:Type}  {
+    $0
+}
\ No newline at end of file
diff --git a/snippets/rust-mode/afnw b/snippets/rust-mode/afnw
new file mode 100644
index 0000000000..3c358f88a6
--- /dev/null
+++ b/snippets/rust-mode/afnw
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: async fn name<T>(x: T) where T: Clone { ... }
+# key: afnw
+# --
+async fn ${1:name}<${2:T}>(${3:x: T}) where ${4:T: Clone} {
+    $0
+}
\ No newline at end of file
diff --git a/snippets/rust-mode/pafn b/snippets/rust-mode/pafn
new file mode 100644
index 0000000000..13edd5ccc1
--- /dev/null
+++ b/snippets/rust-mode/pafn
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: pub async fn name() { ... }
+# key: pafn
+# --
+pub async fn ${1:name}($2) {
+    $0
+}
\ No newline at end of file
diff --git a/snippets/rust-mode/pafnr b/snippets/rust-mode/pafnr
new file mode 100644
index 0000000000..3ce96818fc
--- /dev/null
+++ b/snippets/rust-mode/pafnr
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: pub async fn name() -> Type { ... }
+# key: pafnr
+# --
+pub async fn ${1:name}($2) -> ${3:Type} {
+    $0
+}
\ No newline at end of file
diff --git a/snippets/rust-mode/pafns b/snippets/rust-mode/pafns
new file mode 100644
index 0000000000..ad223f9046
--- /dev/null
+++ b/snippets/rust-mode/pafns
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: pub async fn name(&self) -> Type  { ... }
+# key: pafns
+# --
+pub async fn ${1:name}(${2:&self}) -> ${3:Type} {
+    $0
+}
\ No newline at end of file
diff --git a/snippets/rust-mode/pafnw b/snippets/rust-mode/pafnw
new file mode 100644
index 0000000000..bea6dd2d84
--- /dev/null
+++ b/snippets/rust-mode/pafnw
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: pub async fn name<T>(x: T) where T: Clone { ... }
+# key: pafnw
+# --
+pub async fn ${1:name}<${2:T}>(${3:x: T}) where ${4:T: Clone} {
+    $0
+}
\ No newline at end of file



reply via email to

[Prev in Thread] Current Thread [Next in Thread]