Function pw_format::macros::generate

source ·
pub fn generate(
    generator: impl FormatMacroGenerator,
    format_and_args: FormatAndArgs
) -> Result<TokenStream, Error>
Expand description

Generate code for a pw_format style proc macro.

generate takes a FormatMacroGenerator and a FormatAndArgs struct and uses them to produce the code output for a proc macro.