fn to_seeds_tts(seeds: &[syn::Expr]) -> proc_macro2::TokenStream {
    assert!(!seeds.is_empty());
    let seed_0 = &seeds[0];
    let mut tts = match seed_0 {
        syn::Expr::Path(_) => quote! {
            anchor_lang::Key::key(&#seed_0).as_ref(),
        },
        _ => quote! {
            #seed_0,
        },
    };
    for seed in &seeds[1..] {
        tts = match seed {
            syn::Expr::Path(_) => quote! {
                #tts
                anchor_lang::Key::key(&#seed).as_ref(),
            },
            _ => quote! {
                #tts
                #seed,
            },
        };
    }
    tts
}
// Returns the inner part of the seeds slice as a token stream.
Returns the inner part of the seeds slice as a token stream.
Returns the inner part of the seeds slice as a token stream .
fn to_seeds_tts(seeds: &[syn::Expr]) -> proc_macro2::TokenStream {
    assert!(!seeds.is_empty());
    let seed_0 = &seeds[0];
    let mut tts = match seed_0 {
        syn::Expr::Path(_) => quote! {
            anchor_lang::Key::key(&#seed_0).as_ref(),
        },
        _ => quote! {
            #seed_0,
        },
    };
    for seed in &seeds[1..] {
        tts = match seed {
            syn::Expr::Path(_) => quote! {
                #tts
                anchor_lang::Key::key(&#seed).as_ref(),
            },
            _ => quote! {
                #tts
                #seed,
            },
        };
    }
    tts
}
fn to_seeds_tts ( seeds : & [ syn :: Expr ] ) -> proc_macro2 :: TokenStream { assert ! ( seeds is_empty ( ) ) ; let seed_0 = & seeds [ 0 ] ; let mut tts = match seed_0 { syn :: Expr :: Path ( _ ) => quote ! { anchor_lang Key key ( seed_0 ) as_ref ( ) } , _ => quote ! { seed_0 } , } ; for seed in & seeds [ 1 .. ] { tts = match seed { syn :: Expr :: Path ( _ ) => quote ! { tts anchor_lang Key key ( seed ) as_ref ( ) } , _ => quote ! { tts seed } , } ; } tts }
Returns the inner part of the seeds slice as a token stream.
Returns the inner part of the seeds slice as a token stream .
seeds
&[syn::Expr]