This repository has been archived on 2021-04-06. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/home/.config/nvim/UltiSnips/rust.snippets

8 lines
196 B
Plaintext
Raw Normal View History

2020-08-01 09:56:44 +02:00
snippet disp "Display trait implentation"
impl fmt::Display for ${1:Struct} {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "${2}", ${3})
}
}${0}
endsnippet