You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
286 B
13 lines
286 B
snippet debug
|
|
abbr deb
|
|
options head
|
|
println!("{:?}", ${1});
|
|
|
|
snippet impldisplay
|
|
abbr disp
|
|
options head
|
|
impl fmt::Display for ${1} {
|
|
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
|
write!(f, "${2}", ${3})
|
|
}
|
|
}
|