fn parse_string_to_type(s: String, span: proc_macro2::Span) -> Result<syn::Type, syn::Error> {
    let lit = syn::LitStr::new(&s, span);
    let tokens = spanned_tokens(&lit)?;
    syn::parse2(tokens)
}
// Adapted from serde's internal `parse_lit_into_ty` function (with the chain of helper functions directly cargo culted over)
Adapted from serde's internal `parse_lit_into_ty` function (with the chain of helper functions directly cargo culted over)
Adapted from serde ' s internal ` parse_lit_into_ty ` function ( with the chain of helper functions directly cargo culted over )
fn parse_string_to_type(s: String, span: proc_macro2::Span) -> Result<syn::Type, syn::Error> {
    let lit = syn::LitStr::new(&s, span);
    let tokens = spanned_tokens(&lit)?;
    syn::parse2(tokens)
}
fn parse_string_to_type ( s : String , span : proc_macro2 :: Span ) -> Result < syn :: Type , syn :: Error > { let lit = syn :: LitStr :: new ( & s , span ) ; let tokens = spanned_tokens ( & lit ) ? ; syn :: parse2 ( tokens ) }
Adapted from serde's internal `parse_lit_into_ty` function (with the chain of helper functions directly cargo culted over)
Adapted from serde ' s internal ` parse_lit_into_ty ` function ( with the chain of helper functions directly cargo culted over )
s
String
span
proc_macro2::Span