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