summaryrefslogtreecommitdiff
path: root/.emacs.d/snippets/rust-mode/display
blob: 1764f670961c05e8dc8764a8c65c4bc9eda12c02 (plain)
1
2
3
4
5
6
7
8
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")
    }
}