pub(crate) fn impl_owned(params: &Parameters, fields: Vec<(Field, Field)>) -> TokenStream {
    let mut functions_tokens = TokenStream::new();

    let stream = merge(params, fields.clone());
    functions_tokens.extend(vec![stream]);

    let stream = merge_soft(params, fields);
    functions_tokens.extend(vec![stream]);

    let src_ident = &params.src_struct.ident;
    let target_path = &params.target_path;
    quote! {
        impl struct_merge::StructMergeInto<#target_path> for #src_ident {
            #functions_tokens
        }
    }
}
/// Generate the implementation of [struct_merge::StructMerge] for given structs.
Generate the implementation of [struct_merge::StructMerge] for given structs.
Generate the implementation of [ struct_merge :: StructMerge ] for given structs .
pub(crate) fn impl_owned(params: &Parameters, fields: Vec<(Field, Field)>) -> TokenStream {
    let mut functions_tokens = TokenStream::new();
    let stream = merge(params, fields.clone());
    functions_tokens.extend(vec![stream]);
    let stream = merge_soft(params, fields);
    functions_tokens.extend(vec![stream]);
    let src_ident = &params.src_struct.ident;
    let target_path = &params.target_path;
    quote! {
        impl struct_merge::StructMergeInto<#target_path> for #src_ident {
            #functions_tokens
        }
    }
}
pub ( crate ) fn impl_owned ( params : & Parameters , fields : Vec < ( Field , Field ) > ) -> TokenStream { let mut functions_tokens = TokenStream :: new ( ) ; let stream = merge ( params , fields . clone ( ) ) ; functions_tokens . extend ( vec ! [ stream ] ) ; let stream = merge_soft ( params , fields ) ; functions_tokens . extend ( vec ! [ stream ] ) ; let src_ident = & params . src_struct . ident ; let target_path = & params . target_path ; quote ! { impl struct_merge StructMergeInto target_path for src_ident { functions_tokens } } }
Generate the implementation of [struct_merge::StructMerge] for given structs.
Generate the implementation of [ struct_merge :: StructMerge ] for given structs .
params
&Parameters
fields
Vec<(Field, Field)>