It'd be interesting to be able to add (structs' and fields') fields documentation. For example: ```rust let mut scope = Scope::new(); scope.new_struct("Foo").field("bar", "i64", "This is a `bar`"); ``` could generate: ```rust 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()`?
It'd be interesting to be able to add (structs' and fields') fields documentation.
For example:
could generate:
Or maybe a
Fieldtype would be useful which could bepush_field()ed to aStruct, similarly toScope::push_struct()?