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 6821579 commit 2c0e75aCopy full SHA for 2c0e75a
snippets/rust/rust.json
@@ -397,5 +397,23 @@
397
"prefix": "while",
398
"body": ["while ${1:condition} {", " ${2:todo!();}", "}"],
399
"description": "while … { … }"
400
+ },
401
+ "pafn": {
402
+ "prefix": "pafn",
403
+ "body": [
404
+ "pub async fn ${1:name}(${2:arg}: ${3:Type}) -> ${4:RetType} {",
405
+ " ${5:todo!();}",
406
+ "}"
407
+ ],
408
+ "description": "pub async fn …(…) { … }"
409
410
+ "afn": {
411
+ "prefix": "afn",
412
413
+ "async fn ${1:name}(${2:arg}: ${3:Type}) -> ${4:RetType} {",
414
415
416
417
+ "description": "async fn …(…) { … }"
418
}
419
0 commit comments