diff options
Diffstat (limited to '.emacs.d/snippets/rust-mode/drop')
| -rw-r--r-- | .emacs.d/snippets/rust-mode/drop | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/.emacs.d/snippets/rust-mode/drop b/.emacs.d/snippets/rust-mode/drop new file mode 100644 index 0000000..ba23a5b --- /dev/null +++ b/.emacs.d/snippets/rust-mode/drop | |||
| @@ -0,0 +1,9 @@ | |||
| 1 | # -*- mode: snippet -*- | ||
| 2 | # name: impl Drop for Type { fn drop(...) } | ||
| 3 | # key: drop | ||
| 4 | # -- | ||
| 5 | impl Drop for ${1:Type} { | ||
| 6 | fn drop(&mut self) { | ||
| 7 | $0 | ||
| 8 | } | ||
| 9 | } | ||
