2 ms·
Why do you have the builder pattern (other than the verbosity of declaring them)? I normally just leverage a couple of features: Derive(default) to have an "em
by estebank 6y ago
Why do you have the builder pattern (other than the verbosity of declaring them)?
I normally just leverage a couple of features: Derive(default) to have an "empty" initialized value and the struct field filling syntax
let x = Foo { field_i_care_about, ..Default::default() };