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
Is it possible to name the ctor differently than "new"?
I have several use cases where I use the derived new only internally in my real ctor that should be used by client code. The fact that derive-new names the ctor new means I can't use that name for my handwritten ctor, but I'd like to.
Could you add the feature to name it differently?
E.g. #[derive(new = "new_internal")]
The text was updated successfully, but these errors were encountered:
Is it possible to name the ctor differently than "new"?
I have several use cases where I use the derived
new
only internally in my real ctor that should be used by client code. The fact that derive-new names the ctornew
means I can't use that name for my handwritten ctor, but I'd like to.Could you add the feature to name it differently?
E.g.
#[derive(new = "new_internal")]
The text was updated successfully, but these errors were encountered: