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