We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Often you just want a builder for a struct without wanting to create a constructor.
This is a natural progression for the code:
Idea is that a derive macro could be introduced that allows derivation of a new method and builder.
The text was updated successfully, but these errors were encountered:
#[derive(buildstructor::Builder)] pub struct MyStruct { simple: usize, }
This will derive the following:
#[buildstructor::buildstructor] pub impl MyStruct { #[builder(visibility="pub")] fn new(simple: usize)->MyStruct { Self { simple } } }
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Often you just want a builder for a struct without wanting to create a constructor.
This is a natural progression for the code:
Idea is that a derive macro could be introduced that allows derivation of a new method and builder.
The text was updated successfully, but these errors were encountered: