copy snippets from mac

This commit is contained in:
Willem van den Ende
2025-10-10 10:21:45 +01:00
parent 934d5ecd36
commit 2bd933dced
19 changed files with 417 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
# -*- mode: snippet -*-
# name: builder method
# key: with_attribute_build
# --
pub(crate) fn with_${1:attributename}(&mut self, $1: &str) -> &${2:structname} {
self.$1 = $1.to_string();
return self;
}
$0