Snippington Rust Basic
Visual Studio Code extension for Rust code snippets.
Basic Shortcuts
Prefix |
Description |
rst: hello-world |
Hello World program. |
rst: print-formatted |
Print formatted. |
rst: print-formatted-positional |
Print formatted positional. |
rst: print-formatted-named |
Print formatted named. |
rst: attribute-derive-debug |
Derive debug implementation for a struct. |
rst: struct-simple |
Create a simple struct. |
rst: struct-simple-initialize |
Initialize a simple struct. |
rst: var |
Declare a variable. |
rst: const |
Declare a constant. |
rst: var-mut |
Declare a mutable variable. |
rst: var-input-value |
Accept value and store in variable. |
rst: var-int |
Declare an integer. |
rst: var-float |
Declare a float. |
rst: var-bool |
Declare a boolean. |
rst: var-char |
Declare a char. |
rst: var-tuple |
Declare a tuple. |
rst: var-match-tuple |
Match a tuple. |
rst: var-array-int |
Declare an array of int. |
rst: func |
Declare a simple function. |
rst: if-then-else |
Create an if then else condition." |
rst: if-then-else-short |
Create an if then else condition shorthand." |
rst: for-loop |
Create a for loop." |
rst: for-loop-reverse |
Create a for loop reverse." |
rst: while-loop |
Create a while loop." |
| |