Closed jquesada2016 closed 2 years ago
You can add inherent methods of your own to the builder using an additional impl
block; I'd suggest doing that for this case. The character savings otherwise are too small to justify the added complexity for the macro.
Reading through the docs, I did not see if this was already possible, but it would be very convenient to be able to (un)set a
bool
field a simple method call. Let's take the following.It would nice to do the following:
And in the cases where a false bool should be set, perhaps: