Function synthez_core::codegen::to_tokens::derive[][src]

pub fn derive(input: &DeriveInput) -> Result<TokenStream>
Expand description

Expands #[derive(ToTokens)] proc macro.

Errors

  • If the proc macro isn’t applied to a struct or an enum.
  • If parsing #[to_tokens] helper attribute fails.