pub fn generate_cmp_fns(&self) -> Tstream {
        let cmp_fns = self
            .fields
            .iter()
            .filter(|f| f.field_attr.cmp)
            .map(|f| Function::gen_cmp_fn(f));
        quote! {
            #(#cmp_fns)*
        }
    }
/// Generate compare function for each field
Generate compare function for each field
Generate compare function for each field
pub fn generate_cmp_fns(&self) -> Tstream {
        let cmp_fns = self
            .fields
            .iter()
            .filter(|f| f.field_attr.cmp)
            .map(|f| Function::gen_cmp_fn(f));
        quote! {
            #(#cmp_fns)*
        }
    }
pub fn generate_cmp_fns ( & self ) -> Tstream { let cmp_fns = self . fields . iter ( ) . filter ( | f | f . field_attr . cmp ) . map ( | f | Function :: gen_cmp_fn ( f ) ) ; quote ! { ( cmp_fns ) } }
Generate compare function for each field
Generate compare function for each field
&self
&self