1 2 3 4 5
use syn::Ident; pub fn str_to_ident(string: String) -> Ident { Ident::new(&string, proc_macro::Span::call_site().into()) }