Expand description
Code to help generate functions.
The structure is:
Generator.impl_for():ImplFor.generate_fn():FnBuilder.body(|builder| { .. }):StreamBuilder
Afterwards, Generator::finish() must be called to take out the TokenStream produced.
Structs§
- A builder for functions.
 - A builder for constants.
 - Builder to generate a
struct <Name> { <field>: <ty>, ... } - Builder for generating a module with its contents.
 - The generator is used to generate code.
 - A helper struct for implementing functions for a given struct or enum.
 - A helper struct for implementing a trait for a given struct or enum.
 - Failed to parse the code passed to
StreamBuilder::push_parsed - A helper struct build around a TokenStream to make it easier to build code.
 
Enums§
- The
selfargument of a function 
Traits§
- Helper trait to make it possible to nest several builders. Internal use only.