You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to derive fluent, or 'builder' style API
for my use-case I would prefer settings returning Self, but for other use-cases returning &mut Self is probably more appropriate. ideally both would be supported.
The text was updated successfully, but these errors were encountered:
This seems to be a feature request, you're welcome to propose a syntax and work on a feature, but I don't use this crate, so it's unlikely I'm going to implement this.
So the the differences are the mut self instead of &mut self and the return of Self instead of &mut Self.
There is a pull request #84 which implements this, but I'd be unhappy with the naming. I'd prefer with_ prefix instead of set_ or set_fluent_ (as far as i understand the diff) as this will be short and nobody might trip over the copy of self.
This change will add a great value for getset and will ensure users will write shorter, more readable code when creating structs and builders.
I would like to derive fluent, or 'builder' style API
for my use-case I would prefer settings returning
Self
, but for other use-cases returning&mut Self
is probably more appropriate. ideally both would be supported.The text was updated successfully, but these errors were encountered: