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.
pub fn derive(input: &DeriveInput) -> Result<TokenStream>Expands #[derive(ToTokens)] proc macro.
#[to_tokens] helper attribute fails.