init
This commit is contained in:
9
snippets/rust-mode/display
Normal file
9
snippets/rust-mode/display
Normal file
@@ -0,0 +1,9 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: impl Display for Type { fn fmt (...) }
|
||||
# key: display
|
||||
# --
|
||||
impl Display for ${1:Type} {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
write!(f, "$0")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user