init
This commit is contained in:
10
snippets/rust-mode/from
Normal file
10
snippets/rust-mode/from
Normal file
@@ -0,0 +1,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 { }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user