Files
dotemacs/snippets/rustic-mode/builder method
T

11 lines
230 B
Plaintext

# -*- 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