use quote::{ToTokens, quote}; use syn::{parse::Parse, spanned::Spanned}; pub struct RefAndMut { name: syn::Ident, } impl Parse for RefAndMut { fn parse(input: syn::parse::ParseStream) -> syn::Result { // let type_path = input.parse::()?; // let matching = input.parse::()?; let name = input.parse::()?; // panic!("{type_path:?}\n\n{matching:?}"); Ok(Self { name }) } } impl ToTokens for RefAndMut { fn to_tokens(&self, tokens: &mut proc_macro2::TokenStream) { tokens.extend(quote! {}); } }