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.
1 parent 4a889dc commit 8f4de77Copy full SHA for 8f4de77
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