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.

11 lines
233 B

5 years ago
  1. # -*- mode: snippet -*-
  2. # name: impl FromStr for Type { fn from_str(...) }
  3. # key: fromstr
  4. # --
  5. impl FromStr for ${1:Type} {
  6. type Err = ${2:Error};
  7. fn from_str(s: &str) -> Result<Self, Self::Err> {
  8. Ok(Self{})
  9. }
  10. }