diff options
Diffstat (limited to '.emacs.d/snippets/rust-mode/fnw')
| -rw-r--r-- | .emacs.d/snippets/rust-mode/fnw | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/.emacs.d/snippets/rust-mode/fnw b/.emacs.d/snippets/rust-mode/fnw new file mode 100644 index 0000000..321c292 --- /dev/null +++ b/.emacs.d/snippets/rust-mode/fnw | |||
| @@ -0,0 +1,7 @@ | |||
| 1 | # -*- mode: snippet -*- | ||
| 2 | # name: fn name<T>(x: T) where T: Clone { ... } | ||
| 3 | # key: fnw | ||
| 4 | # -- | ||
| 5 | fn ${1:name}<${2:T}>(${3:x: T}) where ${4:T: Clone} { | ||
| 6 | $0 | ||
| 7 | } | ||
