We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4a889dc + 3c72ede commit 71ae4a6Copy full SHA for 71ae4a6
snippets/rust-mode/fns
@@ -1,5 +1,7 @@
1
# -*- mode: snippet -*-
2
-# name: fn name(&self) -> Type;
+# name: fn name(&self) -> Type { ... }
3
# key: fns
4
# --
5
-fn ${1:name}(${2:&self}) -> ${3:Type};
+fn ${1:name}(${2:&self}) -> ${3:Type} {
6
+ $0
7
+}
snippets/rust-mode/pfns
-# name: pub fn name(&self) -> Type;
+# name: pub fn name(&self) -> Type { ... }
# key: pfns
-pub fn ${1:name}(${2:&self}) -> ${3:Type};
+pub fn ${1:name}(${2:&self}) -> ${3:Type} {
0 commit comments