Klimi's new dotfiles with stow.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
196 B

5 years ago
  1. # -*- mode: snippet -*-
  2. # name: impl From<From> for Type { fn from(...) }
  3. # key: from
  4. # --
  5. impl From<${1:From}> for ${2:Type} {
  6. fn from(source: $1) -> Self {
  7. $0
  8. Self { }
  9. }
  10. }