We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
It'd be interesting to be able to add (structs' and fields') fields documentation.
For example:
let mut scope = Scope::new(); scope.new_struct("Foo").field("bar", "i64", "This is a `bar`");
could generate:
struct Foo { /// This is a `bar` bar: i64, }
Or maybe a Field type would be useful which could be push_field()ed to a Struct, similarly to Scope::push_struct()?
Field
push_field()
Struct
Scope::push_struct()
The text was updated successfully, but these errors were encountered:
👍 I would probably not include the doc string as a third argument as that could get unwieldy.
A push_field would most definitely be useful either way, so we can add doc (and annotation) support to that.
push_field
Sorry, something went wrong.
No branches or pull requests
It'd be interesting to be able to add (structs' and fields') fields documentation.
For example:
could generate:
Or maybe a
Field
type would be useful which could bepush_field()
ed to aStruct
, similarly toScope::push_struct()
?The text was updated successfully, but these errors were encountered: