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")]
Is it possible to name the ctor differently than "new"?
I have several use cases where I use the derived
newonly internally in my real ctor that should be used by client code. The fact that derive-new names the ctornewmeans 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")]